You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.9 KiB
JavaScript

Ext.BLANK_IMAGE_URL = '../../TruckMng/Content/Images/s.gif';
var panelIndex = null;
Ext.onReady(function () {
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
Ext.Ajax.request({
waitMsg: '正在查询主表数据...',
url: '/MvcShipping/MsBaseInfo/GetCompanyGps',
params: {
condition: ''
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
data = result.data;
//var urlstr = 'http://www.51chache.net:10080/login!jywllg.action?login.loginName=' + data.GPSUser + '&login.password=' + data.GPSPassWord;
// var urlstr = 'http://221.3.83.62:89/mygpsonline/gpsonline/jsp/AutomaticLogin.jsp?uName=' + data.GPSUser + '&uPass=' + data.GPSPassWord+'&uType=100&lType=1';
var urlstr = 'http://122.4.79.126:89/mygpsonline/gpsonline/jsp/AutomaticLogin.jsp?uName=' + data.GPSUser + '&uPass=' + data.GPSPassWord + '&uType=100&lType=1';
panelIndex = new Ext.Panel({
id: 'pnl' + data.GPSUser,
layout: "fit",
region: "center",
autoScroll: true,
frame: false,
html: ' <iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="' + urlstr + '"> </iframe>'
});
var view = new Ext.Viewport({
layout: 'border',
renderTo: 'viewport',
border: false,
items: [{
region: 'center',
layout: 'fit',
items: [panelIndex]
}]
});
} else {
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
}
},
scope: this
});
});