@ -310,24 +310,24 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
if ( selectdata . BSSOURCE != '' ) {
this . formHead . getForm ( ) . findField ( 'BSSOURCE' ) . setValue ( selectdata . BSSOURCE ) ;
}
var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + selectdata . CustName + "')" ;
this . storeInfoClientContact . load ( {
params : { condition : s } ,
callback : function ( r , options , success ) {
if ( success ) {
if ( this . storeInfoClientContact . getCount ( ) > 0 ) {
var member = this . storeInfoClientContact . getAt ( 0 ) ;
this . comboxInfoClientContact . setValue ( member . data . SHOWNAME ) ;
this . formHead . getForm ( ) . findField ( 'OPERATORTEL' ) . setValue ( member . data . TEL ) ;
} else {
this . comboxInfoClientContact . setValue ( '' ) ;
this . formHead . getForm ( ) . findField ( 'OPERATORTEL' ) . setValue ( '' ) ;
//var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + selectdata.CustName + "')";
//this.storeInfoClientContact.load({
// params: { condition: s },
// callback: function (r, options, success) {
// if (success) {
// if (this.storeInfoClientContact.getCount() > 0) {
// var member = this.storeInfoClientContact.getAt(0);
// this.comboxInfoClientContact.setValue(member.data.SHOWNAME);
// this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL);
// } else {
// this.comboxInfoClientContact.setValue('');
// this.formHead.getForm().findField('OPERATORTEL').setValue('');
}
}
} ,
scope : this
} ) ;
// }
// }
// },
// scope: this
//});
}
@ -352,9 +352,9 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
_this . storeOpCode2 . add ( recordCustCode ) ;
this . formHead . getForm ( ) . findField ( 'SALE' ) . setValue ( records [ 0 ] . data . SALE ) ;
if ( records [ 0 ] . data . OP != '' ) {
this . formHead . getForm ( ) . findField ( 'OP' ) . setValue ( records [ 0 ] . data . OP ) ;
}
//if (records[0].data.OP != '') {
// this.formHead.getForm().findField('OP').setValue(records[0].data.OP);
//}
if ( this . formHead . getForm ( ) . findField ( 'SERVICECONTRACTNO' ) . getValue ( ) == '' && records [ 0 ] . data . CONTRACTNO != '' ) {
this . formHead . getForm ( ) . findField ( 'SERVICECONTRACTNO' ) . setValue ( records [ 0 ] . data . CONTRACTNO ) ;
@ -374,55 +374,55 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
BSSOURCEDETAIL . setValue ( '' ) ;
}
}
var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo . value + "')" ;
this . storeInfoClientContact . load ( {
params : { condition : s } ,
callback : function ( r , options , success ) {
if ( success ) {
if ( this . storeInfoClientContact . getCount ( ) > 0 ) {
var member = this . storeInfoClientContact . getAt ( 0 ) ;
this . comboxInfoClientContact . setValue ( member . data . SHOWNAME ) ;
this . formHead . getForm ( ) . findField ( 'OPERATORTEL' ) . setValue ( member . data . TEL ) ;
} else {
this . comboxInfoClientContact . setValue ( '' ) ;
this . formHead . getForm ( ) . findField ( 'OPERATORTEL' ) . setValue ( '' ) ;
//var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
//this.storeInfoClientContact.load({
// params: { condition: s },
// callback: function (r, options, success) {
// if (success) {
// if (this.storeInfoClientContact.getCount() > 0) {
// var member = this.storeInfoClientContact.getAt(0);
// this.comboxInfoClientContact.setValue(member.data.SHOWNAME);
// this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL);
// } else {
// this.comboxInfoClientContact.setValue('');
// this.formHead.getForm().findField('OPERATORTEL').setValue('');
}
}
} ,
scope : this
} ) ;
// }
// }
// },
// scope: this
//});
var sF = " ISFINANCIALSTAFF=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo . value + "')" ;
this . storeInfoClientContactFF . load ( {
params : { condition : sF } ,
callback : function ( r , options , success ) {
if ( success ) {
if ( this . storeInfoClientContactFF . getCount ( ) > 0 ) {
var member = this . storeInfoClientContactFF . getAt ( 0 ) ;
this . comboxClientFCContact . setValue ( member . data . SHOWNAME ) ;
} else {
this . comboxClientFCContact . setValue ( '' ) ;
}
}
} ,
scope : this
} ) ;
var sF = " ISINSURANCE=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo . value + "')" ;
this . storeInfoClientContactIN . load ( {
params : { condition : sF } ,
callback : function ( r , options , success ) {
if ( success ) {
if ( this . storeInfoClientContactIN . getCount ( ) > 0 ) {
var member = this . storeInfoClientContactIN . getAt ( 0 ) ;
this . comboxClientContactIN . setValue ( member . data . SHOWNAME ) ;
} else {
this . comboxClientContactIN . setValue ( '' ) ;
}
}
} ,
scope : this
} ) ;
//var sF = " ISFINANCIALSTAFF=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
//this.storeInfoClientContactFF.load({
// params: { condition: sF },
// callback: function (r, options, success) {
// if (success) {
// if (this.storeInfoClientContactFF.getCount() > 0) {
// var member = this.storeInfoClientContactFF.getAt(0);
// this.comboxClientFCContact.setValue(member.data.SHOWNAME);
// } else {
// this.comboxClientFCContact.setValue('');
// }
// }
// },
// scope: this
//});
//var sF = " ISINSURANCE=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
//this.storeInfoClientContactIN.load({
// params: { condition: sF },
// callback: function (r, options, success) {
// if (success) {
// if (this.storeInfoClientContactIN.getCount() > 0) {
// var member = this.storeInfoClientContactIN.getAt(0);
// this.comboxClientContactIN.setValue(member.data.SHOWNAME);
// } else {
// this.comboxClientContactIN.setValue('');
// }
// }
// },
// scope: this
//});
if ( this . formEdit . getForm ( ) . findField ( 'SHIPPER' ) . getValue ( ) == '' ) {
this . storeShipper . load ( {
@ -15621,10 +15621,10 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
if ( success ) {
var result = Ext . JSON . decode ( response . responseText ) ;
if ( result . Success ) {
_this . formHead . getForm ( ) . findField ( 'HBLNO' ) . setDisabled ( false ) ;
// _this.formHead.getForm().findField('HBLNO').setDisabled(false);
btnGetHblNo . setDisabled ( false ) ;
} else {
_this . formHead . getForm ( ) . findField ( 'HBLNO' ) . setDisabled ( true ) ;
// _this.formHead.getForm().findField('HBLNO').setDisabled(true);
btnGetHblNo . setDisabled ( true ) ;
}
}