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.
122 lines
3.6 KiB
JavaScript
122 lines
3.6 KiB
JavaScript
Ext.namespace('Shipping');
|
|
|
|
Shipping.Diffwin = function (config) {
|
|
Ext.applyIf(this, config);
|
|
this.initUIComponents();
|
|
Shipping.Diffwin.superclass.constructor.call(this);
|
|
};
|
|
Ext.extend(Shipping.Diffwin, Ext.Window, {
|
|
StoreList: null,
|
|
formname: '',
|
|
start: 0,
|
|
limit: 100,
|
|
condition: '',
|
|
returnsql: null,
|
|
_sivalue: "",
|
|
_localvalue:"",
|
|
initUIComponents: function () {
|
|
// BEGIN OF CODE GENERATION PARTS, DON'T DELETE CODE BELOW
|
|
|
|
this.formSearch = Ext.widget('form', {
|
|
frame: true,
|
|
region: 'center',
|
|
bodyPadding: 2,
|
|
fieldDefaults: {
|
|
margins: '2 2 2 2',
|
|
labelAlign: 'right',
|
|
flex: 1,
|
|
labelWidth: 60,
|
|
msgTarget: 'qtip'
|
|
},
|
|
|
|
items: [{
|
|
xtype: 'container',
|
|
defaultType: 'textfield',
|
|
layout: 'anchor',
|
|
defaults: {
|
|
anchor: '100%'
|
|
},
|
|
items: [
|
|
{
|
|
xtype: 'textareafield',
|
|
grow: true,
|
|
height:120,
|
|
labelWidth: 45,
|
|
name: 'SIVALUE',
|
|
fieldLabel: 'SI',
|
|
anchor: '100%',
|
|
html: "<font color='green'></font>"
|
|
}
|
|
,
|
|
{
|
|
xtype: 'textareafield',
|
|
grow: true,
|
|
height: 120,
|
|
labelWidth: 45,
|
|
name: 'LOCALVALUE',
|
|
fieldLabel: '业务',
|
|
anchor: '100%'
|
|
}
|
|
]
|
|
}]
|
|
|
|
});
|
|
_thissearch = this;
|
|
|
|
Ext.apply(this, {
|
|
height: 300,
|
|
closable: true,
|
|
draggable: true,
|
|
title: Zi.LAN.MoreQuery,
|
|
defaultButton: 'btnQuery',
|
|
resizable: false,
|
|
items: [this.formSearch],
|
|
layout: "border",
|
|
width: 500,
|
|
xtype: "window",
|
|
id: "DsQueryWin",
|
|
listeners: {
|
|
scope: this
|
|
,
|
|
'beforeshow': function (thewin, eOpts) {
|
|
|
|
var showsi
|
|
|
|
|
|
SI = _thissearch.formSearch.getForm().findField("SIVALUE");
|
|
LOCAL = _thissearch.formSearch.getForm().findField("LOCALVALUE");
|
|
|
|
//SI.update("a" + "<font color='green'>" + "b" + "</font>");
|
|
|
|
//var showsi = "";
|
|
//var showlocal = "";
|
|
//for (var _i = 0; (_i < _sivalue.length || _i < _localvalue.length); _i++) {
|
|
// sichar = "";
|
|
// localchar = "";
|
|
// if (_i < _sivalue.length) sichar = _sivalue.charAt(_i);
|
|
// if (_i < _localvalue.length) sichar = _localvalue.charAt(_i);
|
|
|
|
// if (sichar !== "" && localchar !== "" ) {
|
|
// if (sichar != sichar) {
|
|
// showsi += sichar;
|
|
// showlocal += showlocal.charAt(_i)
|
|
// }
|
|
|
|
// }
|
|
//}
|
|
|
|
SI.setValue(_thissearch._sivalue);
|
|
|
|
LOCAL.setValue(_thissearch._localvalue);
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
|
|
} //onDeleteClick
|
|
|
|
|
|
|
|
});
|