processworld.emersonprocess.com
Open in
urlscan Pro
144.191.146.237
Public Scan
Submitted URL: https://processworld.emersonprocess.com/default.asp?id=311842-12bdd55fb21e4d358b581ba3740c59cf
Effective URL: https://processworld.emersonprocess.com/Validation/Validation/311842-12bdd55fb21e4d358b581ba3740c59cf
Submission: On April 04 via manual from US — Scanned from DE
Effective URL: https://processworld.emersonprocess.com/Validation/Validation/311842-12bdd55fb21e4d358b581ba3740c59cf
Submission: On April 04 via manual from US — Scanned from DE
Form analysis
1 forms found in the DOMPOST /Validation/Validate
<form action="/Validation/Validate" method="post" novalidate="novalidate"><input name="__RequestVerificationToken" type="hidden"
value="Vv1S97I-dhiSEycbX-rO_mu1ZWreDHuxweUcUm7KgF4utws3BDjUVAqiuvD2bbdpZzk1GkAsp7_9h-aUNGowhEdkX5CL2O3VxYpyuJ57Czo1"><input id="User_IdentifiedBy" name="User.IdentifiedBy" type="hidden" value="RETURNKEY"><input id="User_return_key"
name="User.return_key" type="hidden" value="311842-12bdd55fb21e4d358b581ba3740c59cf"><input data-val="true" data-val-number="The field EntityID must be a number." id="EntityID" name="EntityID" type="hidden" value="57037"><input id="entityType"
name="EntityType" type="hidden" value="manager"><input data-val="true" data-val-number="The field user_id must be a number." data-val-required="The user_id field is required." id="user_id" name="User.user_id" type="hidden" value="311842"><input
id="user_email_address" name="User.email_address" type="hidden" value="akewley@appliedcontrol.com"><input id="mgr_id_orig" name="mgr_id_orig" type="hidden" value="39449"><input data-val="true" data-val-number="The field mgr_id must be a number."
id="User_mgr_id" name="User.mgr_id" type="hidden" value="39449"><input data-val="true" data-val-required="The FlgValidating field is required." id="hidFlgValidating" name="FlgValidating" type="hidden" value="True"><input data-val="true"
data-val-required="The mgr_terminated field is required." id="hidMgrTerminated" name="User.mgr_terminated" type="hidden" value="False"><input data-val="true" data-val-required="The ExternalImport_ChangeManager field is required."
id="hidExtChangeManager" name="User.ExternalImport_ChangeManager" type="hidden" value="False"><input data-val="true" data-val-required="The ChangingManager field is required." id="hidChangingManager" name="User.ChangingManager" type="hidden"
value="False"><input data-val="true" data-val-number="The field User_MgrID must be a number." id="User_User_MgrID" name="User.User_MgrID" type="hidden" value="57037"> <!-- External User Validation -->
<!-- Internal User Validation -->
<div class="PanelTitle"> My Manager </div>
<div class="PanelBody">
<div style="overflow:hidden;">
<input data-val="true" data-val-number="The field mgr_id must be a number." data-val-required="The mgr_id field is required." id="NewManager_mgr_id" name="NewManager.mgr_id" type="hidden" value="0">
<input data-val="true" data-val-number="The field user_id must be a number." id="NewManager_user_id" name="NewManager.user_id" type="hidden" value="">
<input id="NewManager_OfficeID" name="NewManager.OfficeID" type="hidden" value="">
<input id="NewManager_first_name" name="NewManager.first_name" type="hidden" value="">
<input id="NewManager_middle_name" name="NewManager.middle_name" type="hidden" value="">
<input id="NewManager_last_name" name="NewManager.last_name" type="hidden" value="">
<input id="NewManager_email_address" name="NewManager.email_address" type="hidden" value="">
<div id="divMgrDeatils">
<div class="row">
<div class="col-xs-12 col-sm-1 col-md-1">
</div>
<div class="col-xs-12 col-sm-1 col-md-1">
<strong>Name</strong>
</div>
<div class="col-xs-12 col-sm-10 col-md-10" style="left: 5%;">
<p id="mgrName">Tad Cahill</p>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-1 col-md-1">
</div>
<div class="col-xs-12 col-sm-1 col-md-1">
<strong>Email</strong>
</div>
<div class="col-xs-12 col-sm-10 col-md-10" style="left: 5%;">
<p id="mgrEmail"> tcahill@appliedcntrl.com </p>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-1 col-md-1">
</div>
<div class="col-xs-12 col-sm-1 col-md-1">
<strong>Office</strong>
</div>
<div class="col-xs-12 col-sm-10 col-md-10" style="left: 5%;">
<div id="mgrOffice">
<span id="mgrOffice"> Applied Control Equipment <br> 13705 Compark Blvd<br>Englewood, CO<br>United States </span>
</div>
</div>
</div>
</div>
<div class="row">
<br>
<div class="col-xs-12 col-sm-1">
</div>
<div class="col-xs-12 col-sm-11">
<label class="checkbox-inline">
<input type="checkbox" id="mgr_works" name="mgr_works" value="1">
<u>My Current Manager is no longer employed</u>
<br> by an Emerson Group/Business Unit, LBP or Rep office. </label>
<br>
</div>
</div>
<br>
<div class="row">
<div class="col-xs-12 col-sm-1">
</div>
<div class="col-xs-12 col-sm-11">
<div style="float: left;">
<img src="/Content/images/warning_icon_small.gif">
</div>
<div style="display: table;"> You cannot edit your manager's office or email address. If either is wrong, please urge your manager to change it. </div>
</div>
</div>
<br>
<div style="text-align:right">
<button type="button" class="btn btn-sm btn-ProcessWorld f-bold" data-toggle="modal" data-target="#changeManagerModal">CHANGE <span class="btnRightArrow"> </span></button>
</div>
<input id="User_email_address" name="User.email_address" type="hidden" value="akewley@appliedcontrol.com"><input id="User_User_MgrID" name="User.User_MgrID" type="hidden" value="57037"><input id="User_Mgr_Email_Address"
name="User.Mgr_Email_Address" type="hidden" value="tcahill@appliedcntrl.com">
<div class="modal fade" id="changeManagerModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center">
<div class="modal-content">
<div class="modal-header popupModal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="row">
<div class="modal-title col-sm-5 col-xs-12 ">
<h3>Change Manager</h3>
</div>
<div class="col-sm-7 col-xs-12"> Enter your new manager's email address below. </div>
</div>
</div>
<div class="modal-body">
<div>
<div id="divEmail" class="row form-group">
<br>
<div class="col-xs-12 col-sm-3 labelCol">
<span class="required">* </span> Email Address
</div>
<div class="col-xs-7 col-sm-6">
<input id="email" name="email" class="form-control">
<div id="divErrorMsg" style="display: none;" class="col-xs-12 field-validation-error">
</div>
</div>
<div class="col-xs-5 col-sm-3">
<button type="button" id="btnChange" class="btn btn-sm btn-ProcessWorld f-bold">CHANGE <span class="btnRightArrow"> </span></button>
</div>
</div>
<div class="row">
<div id="divMsg" class="col-xs-12 col-sm-12">
</div>
</div>
<div id="addManagerModal" style="display:none;" class="row">
<div class="col-xs-12 col-sm-12">
<!-- Add Manager Modal-->
<div class="row">
<div class="col-xs-12 col-sm-3">
<h4>New Manager</h4>
</div>
<div id="divAddMgrLabel" class=" col-xs-12 col-sm-9" style="padding-top:10px;">Enter your manager's details only if you didn't find them before.</div>
</div>
<div id="divAddMgrMsg" class="alert alert-warning" role="alert" style="display: none; margin-bottom: -10px; padding-top: 5px;">
</div>
<div class="PanelBody">
<div class="row form-group">
<div class="col-xs-12 col-sm-4 labelCol">
<span class="required">* </span> First Name
</div>
<div class="col-xs-12 col-sm-8">
<input class="form-control" id="first_name" name="first_name" type="text" value="">
</div>
</div>
<div class="row form-group">
<div class="col-xs-12 col-sm-4 labelCol"> Middle Initial </div>
<div class="col-xs-12 col-sm-8">
<input class="form-control" id="middle_name" maxlength="25" name="middle_name" type="text" value="">
</div>
</div>
<div class="row form-group">
<div class="col-xs-12 col-sm-4 labelCol">
<span class="required">* </span> Last Name
</div>
<div class="col-xs-12 col-sm-8 ">
<input class="form-control" id="last_name" name="last_name" type="text" value="">
</div>
</div>
<div class="row form-group">
<div class="col-xs-12 col-sm-4 labelCol">
<span class="required">* </span> Email
</div>
<div class="col-xs-12 col-sm-8 ">
<input class="form-control" id="email_address" name="email_address" type="text" value="">
</div>
</div>
<div class="row hidden" id="addOfficeWarningMsgBox">
<div class="col-xs-12 col-sm-12 alert alert-warning">
<p id="addOfficeWarningMsgContent"></p>
</div>
</div>
<div class="row text-center">
<button type="button" id="btnAddManager" class="btn btn-sm btn-ProcessWorld f-bold">ADD <span class="btnRightArrow"> </span></button>
</div>
</div>
<script type="text/javascript">
function ReturnMgrOffice(obj) {
var officeId = $(obj).find("input[type='hidden']").val();
var address = $(obj).find(".ofcAddress").html();
$("input[id$=NewManager_OfficeID]").val(officeId);
$("#mgrOffice").html(address);
$("#mgrOffice").removeClass("input-validation-error");
$("#changeOfficeModal").modal('hide');
}
function loadOfficeScripts() {
$("#state").val("");
$("#country").val("");
$("#changeOfficeModal #city").on("keydown", function(e) {
if (e.keyCode == 13) {
e.preventDefault();
$("#btnSearchOffices").click();
return;
}
});
$("#changeOfficeModal #officeName").on("keydown", function(e) {
if (e.keyCode == 13) {
e.preventDefault();
$("#btnSearchOffices").click();
return;
}
});
// Search Offices
$("#btnSearchOffices").on("click", function(e) {
e.preventDefault();
var city = $.trim($("#city").val());
var state = $.trim($("#state").val());
var country = $.trim($("#country").val());
var name = $.trim($("#officeName").val());
if (city.length == 0 && state.length == 0 && country.length == 0 && name.length == 0) {
return;
} else {
$.ajax({
type: "post",
url: "/MyDetails/GetOfficeList",
data: {
city: ReplaceUnsafeCharactors(city),
state: state,
country: country,
name: ReplaceUnsafeCharactors(name)
},
dataType: "json",
success: function(res) {
$("#addOfficeSection").addClass("hidden");
$("#newOfficeSentReminder").addClass("hidden");
RenderOfficeList(res);
},
error: function(e) {
alert(e.statusText);
}
});
}
});
// Render Office list
var RenderOfficeList = function(res) {
$("#officeList").html("");
if (res != "") {
$("#officeNoResultBox").addClass("hidden");
$("#officeList").removeClass("hidden");
res = res.replace(/'/g, "\'");
var str = res.substring(3695, res.length);
res = JSON.parse(res);
var content = "";
content += "<div><b>Search Results</b></div>";
content += "<div style=\"height:280px; overflow-y:scroll;\">";
for (var i = 0; i < res.offices.length; i++) {
content += "<div class=\" media";
if (i % 2 == 0) {
content += " alter ";
}
content += "\" style=\"\" onclick=\"javascript:ReturnMgrOffice(this);\" >";
content += "<div class=\"media-left media-middle\" >";
content += "<input type=\"hidden\" class=\"ofcId\" value=\"" + res.offices[i].id + "\" />";
content += "<img class=\"media-object officeIcon\" src=\"../../Content/images/building_icon.gif\" /></div>";
content += "<div class=\"media-body ofcAddress\">";
if (res.offices[i].rep_office == "1" && res.offices[i].name.trim().length > 0) {
content += "<b>" + res.offices[i].name.trim() + "</b><br>";
if (res.offices[i].address1.trim().length > 0) {
content += res.offices[i].address1 + "<br>";
}
} else if (res.offices[i].address1.trim().length > 0) {
content += "<b>" + res.offices[i].address1 + "</b><br>";
}
if (res.offices[i].address2.trim().length > 0) {
content += res.offices[i].address2 + "<br>";
}
if (res.offices[i].address3.trim().length > 0) {
content += res.offices[i].address3 + "<br>";
}
if (res.offices[i].city.trim().length > 0) {
content += res.offices[i].city;
if (res.offices[i].metro.trim().length > 0 && res.offices[i].metro.trim() != res.offices[i].city.trim()) {
content += " (" + res.offices[i].metro + ")";
}
} else {
content += res.offices[i].metro;
}
if (res.offices[i].state.trim().length > 0) {
content += ", " + res.offices[i].state + ", " + res.offices[i].country;
} else {
content += ", " + res.offices[i].country;
}
content += "</div>";
content += "</div>";
}
content += "</div>";
$("#officeList").append(content);
} else {
$("#officeNoResultBox").removeClass("hidden");
$("#officeList").addClass("hidden");
}
}
// Initial change office modal when close
$('#changeOfficeModal').on('hidden.bs.modal', function(e) {
$(this).find("input[type!='hidden']").val("");
$(this).find("select").val("");
$(this).find("#add_isLBP").prop("checked", false);
$(this).find("#newOfficeSentReminder").addClass("hidden");
$(this).find("#btnSendOffice").removeClass("hidden");
$(this).find("#addOfficeSection").addClass("hidden");
$(this).find("#ContactSection").addClass("hidden");
$("#officeList").html("");
$("#officeNoResultBox").addClass("hidden");
$("#officeList").removeClass("hidden");
$("#changeOfficeModal #addOfficeFooter").removeClass("hidden");
})
// when clicking link 'Add Office'
$("#changeOfficeModal #btnAddOffice").on("click", function() {
$("#changeOfficeModal #officeList").addClass("hidden");
$("#changeOfficeModal #officeNoResultBox").addClass("hidden");
$("#changeOfficeModal #addOfficeSection").removeClass("hidden");
$("#changeOfficeModal #addOfficeFooter").addClass("hidden");
});
// when Is LBP value change
$("#add_isLBP").on("change", function() {
$("#ContactSection").toggleClass("hidden");
$("#add_contact").val("");
});
// Send Office to Admin
$("#btnSendOffice").on("click", function(e) {
e.preventDefault();
var msg = CheckNewOfficeRequiredInfo();
if (msg.length > 0) {
$("#addOfficeWarningMsgContent").html(msg);
$("#addOfficeWarningMsgBox").toggleClass("hidden");
setTimeout("$(\"#addOfficeWarningMsgBox\").toggleClass(\"hidden\");", 8000);
return;
} else {
var json = "{\"office\": {";
json += "\"name\":\"" + ReplaceUnsafeCharactors($.trim($("#add_OfficeName").val())) + "\"";
json += ",\"alt_office_name\":\"" + ReplaceUnsafeCharactors($.trim($("#add_AltName").val())) + "\"";
json += ",\"Address1\":\"" + ReplaceUnsafeCharactors($.trim($("#add_Address1").val())) + "\"";
json += ",\"Address2\":\"" + ReplaceUnsafeCharactors($.trim($("#add_Address2").val())) + "\"";
json += ",\"Address3\":\"" + ReplaceUnsafeCharactors($.trim($("#add_Address3").val())) + "\"";
json += ",\"city\":\"" + ReplaceUnsafeCharactors($.trim($("#add_City").val())) + "\"";
json += ",\"metro\":\"" + ReplaceUnsafeCharactors($.trim($("#add_Metro").val())) + "\"";
json += ",\"state_prov_ab\":\"" + $.trim($("#add_state").val()) + "\"";
json += ",\"postal_code\":\"" + ReplaceUnsafeCharactors($.trim($("#add_postalCode").val())) + "\"";
json += ",\"country_ab\":\"" + $.trim($("#add_country").val()) + "\"";
if ($("#add_isLBP").prop("checked") == "true") {
json += ",\"rep_office\":\"1\"";
} else {
json += ",\"rep_office\":\"0\"";
}
json += "} ";
json += ",\"stateName\":\"" + $.trim($("#add_state option:selected").text()) + "\"";
json += ",\"countryName\":\"" + $.trim($("#add_country option:selected").text()) + "\"";
json += ",\"emersonContact\":\"" + ReplaceUnsafeCharactors($.trim($("#add_contact").val())) + "\"";
json += ",\"userName\":\"" + ReplaceUnsafeCharactors($.trim($("#add_userName").val())) + "\"";
json += ",\"userEmail\":\"" + $.trim($("#add_userEmail").val()) + "\"";
json += "}";
json = json.replace(/'/g, "\'");
$.ajax({
type: "post",
url: "/MyDetails/SendNewOffice",
data: {
id: json
},
dataType: "json",
success: function(res) {
if (res) {
$("#btnSendOffice").removeClass("hidden");
$("#addOfficeSection").addClass("hidden");
$("#newOfficeSentReminder").removeClass("hidden");
}
},
error: function(e) {
alert(e.statusText);
}
});
}
});
// check user's input
var CheckNewOfficeRequiredInfo = function() {
var warningMsg = "";
var formatMsg = "";
if ($.trim($("#add_OfficeName").val()) == "") {
warningMsg += "Office Name";
}
if ($.trim($("#add_Address1").val()) == "") {
if (warningMsg.length > 0) {
warningMsg += ", ";
}
warningMsg += "Address";
}
if ($.trim($("#add_City").val()) == "") {
if (warningMsg.length > 0) {
warningMsg += ", ";
}
warningMsg += "City";
}
if ($.trim($("#add_country").val()) == "") {
if (warningMsg.length > 0) {
warningMsg += ", ";
}
warningMsg += "Country";
}
if (warningMsg.length > 0) {
warningMsg = " The following fields are required: " + warningMsg + ". ";
if (formatMsg.length > 0) {
warningMsg += "<br/>";
}
}
if (formatMsg.length > 0) {
warningMsg = warningMsg + formatMsg;
}
return warningMsg;
}
}
$(document).ready(function() {
$("#addManagerModal").find("input[type=text]").on("keydown", function(e) {
if (e.keyCode == 13) {
e.preventDefault();
$("#btnAddManager").click();
return;
}
});
$("#btnAddManager").click(function() {
var valreturn = '';
var emailErr = '';
var firstname = $.trim($("#addManagerModal").find("#first_name").val());
var middlename = $.trim($("#addManagerModal").find("#middle_name").val());
var lastname = $.trim($("#addManagerModal").find("#last_name").val());
var email = $.trim($("#addManagerModal").find("#email_address").val());
if (email.length == 0) {
emailErr = "Email Address.";
}
if (lastname.length == 0) {
if (emailErr.length == 0) {
valreturn = "Last Name.";
} else {
valreturn = "Last Name and " + emailErr;
}
}
if (firstname.length == 0) {
if (valreturn.length == 0) {
if (emailErr.length == 0) {
valreturn = "Please enter First Name.";
} else {
valreturn = "Please enter First Name and " + emailErr;
}
} else {
valreturn = "Please enter First Name and " + valreturn;
}
} else {
if (valreturn.length != 0) {
valreturn = "Please enter " + valreturn;
} else {
if (emailErr.length != 0) {
valreturn = "Please enter " + emailErr;
}
}
}
if (email.length > 0) {
var reg = /\S+@\S+\.\S+/;
if (!reg.test(email)) {
valreturn = valreturn + "<br>Please enter a valid email address";
} else {
$.ajax({
type: "post",
async: false,
url: "/Validation/CheckEmailDomin",
data: {
email: email
},
dataType: "json",
success: function(data) {
if (data != "") {
if (valreturn == "") {
valreturn = valreturn + "<br>" + data;
} else {
valreturn = data;
}
}
}
});
}
}
if (valreturn.toString().length > 0) {
$('#divAddMgrMsg').html(valreturn);
$('#divAddMgrMsg').show();
return false;
}
$("input[id$=NewManager_mgr_id]").val('');
$("input[id$=NewManager_user_id]").val('');
$("input[id$=NewManager_OfficeID]").val('');
$("input[id$=NewManager_last_name]").val(lastname);
$("input[id$=NewManager_middle_name]").val(middlename);
$("input[id$=NewManager_first_name]").val(firstname);
$("input[id$=NewManager_email_address]").val(email);
$.ajax({
type: "post",
url: "/Validation/AddManager",
data: {
firstName: firstname,
middleName: middlename,
lastName: lastname,
email: email
},
dataType: "html",
cache: false,
success: function(data) {
$("#divMgrDeatils").empty();
$("#divMgrDeatils").append(data);
$("#changeManagerModal").modal('hide');
var officeID = $("#mgr_officeid").val();
$("input[id$=NewManager_OfficeID]").val(officeID);
loadOfficeScripts();
}
});
});
});
</script>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- alert Modal -->
<div class="modal fade" id="formAlertModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center">
<div class="modal-content">
<div class="alert-modal-header">
<h4 class="modal-title">WARNING</h4>
</div>
<div class="alert-modal-body">
<h4>The following error(s) were detected:</h4>
<p>
<span id="causeofissue"></span>
</p>
<div class="btnModalOK">
<button type="button" class="btn btn-sm btn-ProcessWorld f-bold" data-dismiss="modal">OK <span class="btnRightArrow"> </span></button>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function ReturnManager(data) {
var res = JSON.parse(data);
$("input[id$=NewManager_mgr_id]").val(res.mgr_id);
$("input[id$=NewManager_user_id]").val(res.user_id);
$("input[id$=NewManager_OfficeID]").val(res.OfficeID);
$("input[id$=NewManager_last_name]").val(res.last_name);
$("input[id$=NewManager_middle_name]").val(res.middle_name);
$("input[id$=NewManager_first_name]").val(res.first_name);
$("input[id$=NewManager_email_address]").val(res.email_address);
if (res.middle_name == "") {
$("#mgrName").text(res.first_name + " " + res.last_name);
} else {
$("#mgrName").text(res.first_name + " " + res.middle_name + " " + res.last_name);
}
$("#mgrEmail").text(res.email_address);
$("#mgrOffice").text(res.mgrOffice);
$("#changeManagerModal").modal('hide');
}
$(document).ready(function() {
$("#changeManagerModal #email").on("keydown", function(e) {
if (e.keyCode == 13) {
e.preventDefault();
$("#btnChange").click();
return;
}
});
$("#btnChange").on("click", function(e) {
e.preventDefault();
var errorMsg = "";
var oldMgrEmail = $("input[id$=User_Mgr_Email_Address]").val();
var mgrEmail = $.trim($("#email").val());
var userEmail = $("input[id$=User_email_address]").val();
var reg = /\S+@\S+\.\S+/;
if (mgrEmail.length == 0) {
errorMsg = "Please enter email address";
//} else if (mgrEmail.length < 5 || mgrEmail.indexOf("@") < 1 || mgrEmail.indexOf(".") < 1) {
} else if (!reg.test($.trim(mgrEmail))) {
errorMsg = "Please enter a valid email address";
} else if (mgrEmail == userEmail) {
errorMsg = 'You cannot choose yourself as your manager';
} else if (mgrEmail == oldMgrEmail) {
errorMsg = 'You cannot choose the same manager that you are currently assigned to';
} else {
var index = mgrEmail.indexOf("@");
var mgrDomin = mgrEmail.substring(index + 1, mgrEmail.length);
var mgrid = $("#User_User_MgrID").val();
$.ajax({
type: "post",
async: false,
url: "/Validation/CheckManagerEmail",
data: {
mgrID: mgrid,
email: mgrEmail,
},
dataType: "json",
success: function(data) {
errorMsg = data;
}
});
}
if (errorMsg != "") {
$('#divErrorMsg').text(errorMsg);
$('#divErrorMsg').show();
$("#email").addClass("input-validation-error");
return false;
}
$.ajax({
type: "post",
url: "/Validation/ExternalChangeManager",
data: {
email: mgrEmail
},
dataType: "json",
cache: false,
success: function(data) {
if (data == "") {
$('#divMsg').show();
$('#divMsg').text("The manager's email address is not in the System. Please enter your manager details.");
$('#divEmail').hide();
$('#divAddMgrLabel').hide();
$('#addManagerModal').show();
$('#divErrorMsg').text(errorMsg);
$('#divErrorMsg').show();
} else {
$("#email").val('');
$("#email").removeClass("input-validation-error");
$('#divErrorMsg').text('');
$('#divErrorMsg').hide();
ReturnManager(data);
}
}
});
});
$("#changeManagerModal").on("hidden.bs.modal", function(e) {
$('#divEmail').show();
$("#email").val('');
$("#email").removeClass("input-validation-error");
$("#first_name").val('');
$("#first_name").removeClass("input-validation-error");
$("#middle_name").val('');
$("#last_name").val('');
$("#last_name").removeClass("input-validation-error");
$("#email_address").val('');
$("#email_address").removeClass("input-validation-error");
$('#divMsg').hide();
$('#addManagerModal').hide();
$('#divErrorMsg').text('');
$('#divErrorMsg').hide();
$('#divAddMgrMsg').text('');
$('#divAddMgrMsg').hide();
});
});
</script>
</div>
</div>
<script type="text/javascript">
// Function to handle search submit...
function submitSearch() {
// first check if we have a valid email address.
var resultCount = 0;
var $myError = $('#errorMessageDiv');
if ($('#searchText').val().indexOf('@') > -1 && $('#searchText').val().indexOf('.') > -1) {
// Hide error message
$myError.hide();
$('#searchResults').html('<div style="text-align:center"><img src="/Content/images/ajax-loader-bar.gif" /><br />Searching...</div>');
// now we need to submit our search via ajax
$.ajax({
type: "POST",
url: '/Home/ManagerSearch',
data: {
'email': $('#searchText').val()
},
//data: AddAntiForgeryToken({ 'email': $('#searchText').val() }),
dataType: 'json',
cache: false,
success: function(data) {
// remove the loading banner...
$('#searchResults').html('');
resultCount = data.length;
//testing = data;
$.each(data, function(i, item) {
if (item.ADPicture) {
var $tr = $('<div>').append($('<div>').append($('<img>', {
'class': 'img-rounded',
id: 'img_' + item.user_id,
src: item.ADPictureData
})).attr('class', 'sml-avatar-div'), $('<div>').html('<div style="font-weight:bold;">' + item.first_name + " " + item.last_name + "</div>" + item.email)).appendTo('#searchResults').attr({
'id': 'mgr-id_' + item.user_id,
'class': 'mgr-search-results clear-fix'
});
} else {
// no picture...
var $tr = $('<div>').append($('<div>').html('<div style="font-weight:bold;">' + item.first_name + " " + item.last_name + "</div>" + item.email)).appendTo('#searchResults').attr({
'id': 'mgr-id_' + item.user_id,
'class': 'mgr-search-results clear-fix'
});
}
});
},
error: function() {
$('#searchResults').html('<p>Connection to the system failed. Please try again.</p>');
}
});
} else {
$myError.show();
$myError.html('<p>Please enter a valid email address.');
}
return false;
}
$(document).ready(function() {
$("#btnYes").click(function() {
updateRecord(true);
});
$("#btnNo").click(function() {
updateRecord(false);
});
// perform the ajax search for managers here...
$('#btnSubmitSearch').click(function() {
submitSearch();
return false;
});
});
</script> <br>
<div class="PanelTitle"> My Team </div>
<div class="PanelBody">
<br>
<div class="table-responsive">
<table id="tblTeamMember" class="table" style="width:98%;">
<tbody>
<tr>
<th class="columnPadding"></th>
<th class="bottomBorder columnPadding">Works for me</th>
<th class="bottomBorder columnPadding">Transferred</th>
<th class="bottomBorder columnPadding">Terminated *</th>
</tr>
<tr id="tblRow_237566">
<td nowrap="nowrap" class="columnPadding text-right"> MICHELLE WEATHERLY </td>
<td class="leftBorder columnPadding rowContainsCheckbox" align="center">
<div data-tooltip="When checked, indicates the person works for you." data-tooltiptitle="Works For Me">
<input id="mgr_team_237566" name="mgr_team_237566" type="checkbox" class="statuscheckbox">
</div>
</td>
<td class="columnPadding rowContainsCheckbox" align="center">
<div data-tooltip="When checked, indicates you have selected this person to transfer." data-tooltiptitle="Transferred">
<input id="mgr_othe_237566" name="mgr_othe_237566" type="checkbox" class="statuscheckbox">
</div>
</td>
<td class="rightBorder columnPadding rowContainsCheckbox" align="center">
<div data-tooltip="When checked, indicates you have selected this person to terminate." data-tooltiptitle="Terminated">
<input id="mgr_note_237566" name="mgr_note_237566" type="checkbox" class="statuscheckbox">
</div>
</td>
</tr>
<tr>
<td></td>
<td style="border-top: solid 1px #D0D0D0;"></td>
<td style="border-top: solid 1px #D0D0D0;"></td>
<td style="border-top: solid 1px #D0D0D0;"></td>
</tr>
</tbody>
</table>
</div>
<!--warning message about the clicking terminated option checkbox-->
<div style="margin-top: 25px;">
<small>* Check the Terminated option only if the person listed no longer works for an Emerson Group/Business Unit, LBP or Rep Office.</small>
</div>
</div>
<script>
$(document).ready(function() {
// handles the click of a checkbox for employee status
$('input:checkbox.statuscheckbox').click(function() {
if ($(this).prop("checked")) {
var objID = $(this).attr("id");
var itemName = $(this).attr("id").split("_");
var itemID = itemName[2];
$('#tblRow_' + itemID).find('input:checkbox.statuscheckbox').each(function() {
var currObjID = $(this).attr("id");
if (currObjID != objID) {
this.checked = false;
}
});
// handels the click of transfer checkbox
if ($('#mgr_othe_' + itemID).is(':checked')) {
$('#row_otherteam_' + itemID).show();
} else {
$('#row_otherteam_' + itemID).hide();
}
}
});
});
</script>
<div class="validation-btn-done">
<button id="btnValidate" type="submit" class="btn btn-sm btn-ProcessWorld f-bold">Done <span class="btnRightArrow"> </span></button>
</div>
<br>
</form>
Text Content
Toggle navigation Welcome, Andrea Kewley | Help Guide | Contact Us | Log Off ProcessWorld * My Details * Validation * Contact Us * Help Guide VALIDATION Below is your organization information. If you are an employee, you must go to Global Directory to update your organization information. If you are an LBP or Representative, you may update it below. * My Details * Validation * Contact Us * Help Guide In order for you to validate your profile, you must confirm the information on this screen and the status of the people you manage. Click 'DONE' to confirm details. My Manager Name Tad Cahill Email tcahill@appliedcntrl.com Office Applied Control Equipment 13705 Compark Blvd Englewood, CO United States My Current Manager is no longer employed by an Emerson Group/Business Unit, LBP or Rep office. You cannot edit your manager's office or email address. If either is wrong, please urge your manager to change it. CHANGE × CHANGE MANAGER Enter your new manager's email address below. * Email Address CHANGE NEW MANAGER Enter your manager's details only if you didn't find them before. * First Name Middle Initial * Last Name * Email ADD WARNING THE FOLLOWING ERROR(S) WERE DETECTED: OK My Team Works for me Transferred Terminated * MICHELLE WEATHERLY * Check the Terminated option only if the person listed no longer works for an Emerson Group/Business Unit, LBP or Rep Office. Done WARNING THE FOLLOWING ERROR(S) WERE DETECTED: OK ©2023 Emerson Privacy Notice Terms of Use × TERMS OF USE This application and all information contained in this application are owned by Emerson Electric Co., or its Business Units and subsidiaries, (“Emerson”) and are for the exclusive use of Emerson employees and Emerson authorized representatives. The information contained in this application is valuable Emerson proprietary, confidential and trade secret information. All use of this application and information, except in furtherance of Emerson business purposes, is strictly prohibited. Unauthorized use of this application or information contained in this application will result in action by Emerson, which could include, but is not limited to, termination of employment or representative status. In addition, Emerson will not tolerate the use of this application or information contained in this application by any person or organization not employed or authorized by Emerson and Emerson shall fully enforce and prosecute its rights against such person or organization.