33 lines
915 B
JavaScript
33 lines
915 B
JavaScript
/***this file is used in MapView.aspx****/
|
|
var PopupViewShowing = false;
|
|
|
|
function machineDetailClick(m) {
|
|
if (m) {
|
|
showMachineDetail(m.CompanyID || "", m.ID, m.VIN);
|
|
|
|
clearLocationHistory();//关闭历史记录
|
|
$("#locationhistoryDiv").hide();
|
|
$("#tripDiv").hide();
|
|
|
|
if (selectedAsset)
|
|
selectedAsset.State.Highlight = false;
|
|
m.State.Highlight = true;
|
|
selectedAsset = m;
|
|
}
|
|
}
|
|
|
|
function showMachineDetail(cid, mid, vin) {
|
|
$("#divassetview").show();
|
|
$('#divtimelineview').hide();
|
|
$("#divmapview").hide();
|
|
execIframeFunc("loadAsset", [cid, mid, vin, 0], "ifassetview");
|
|
PopupViewShowing = true;
|
|
}
|
|
function closePopupView() {
|
|
$("#divassetview").hide();
|
|
$('#divtimelineview').hide();
|
|
$("#divmapview").show();
|
|
PopupViewShowing = false;
|
|
if (selectedAsset)
|
|
selectedAsset.State.Highlight = false;
|
|
} |