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.
DS7/DSWeb/Areas/MvcShipping/Viewsjs/Comm/DsMsgWin.js

61 lines
1.9 KiB
JavaScript

3 years ago
Ext.namespace('Shipping');
Shipping.DsMsgWin = function (config) {
Ext.applyIf(this, config);
this.initUIComponents();
Shipping.DsMsgWin.superclass.constructor.call(this);
};
Ext.extend(Shipping.DsMsgWin, Ext.Window, {
StoreList: null,
formname: '',
start: 0,
limit: 100,
condition: '',
returnsql: null,
initUIComponents: function () {
var eBody = Ext.getBody();
var msgWinConfig = { width: 300, height: 200 };
var msgWin = new Ext.Window({
resizable: false,
x: eBody.getWidth() - msgWinConfig.width, y: eBody.getHeight(), width: msgWinConfig.width, height: msgWinConfig.height, shadow: false
, items:
[
]
, listeners: {
beforeclose: function () {
var win = this;
win.flyOut();
return false;
}
}
, flyIn: function () {
var myWin = this;
myWin.show();
myWin.getEl().shift({
x: eBody.getWidth() - myWin.getWidth(),
y: eBody.getHeight() - myWin.getHeight(),
opacity: 80,
easing: 'easeOut',
duration: .35
});
openMsgWin.flyOut();
myWin.isFlyIn = true;
}
, flyOut: function () {
var myWin = this;
myWin.getEl().shift({
y: eBody.getHeight()
});
openMsgWin.flyIn();
myWin.isFlyIn = false;
}
//自动设置位置
, autoPosition: function () {
if (this.isFlyIn) { this.flyIn(); } else { this.flyOut(); }
}
});
}
});