|
|
@ -14881,8 +14881,6 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
|
if (jsonresult.Success) {
|
|
|
|
if (jsonresult.Success) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
@ -14906,28 +14904,43 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
var sVESSEL = member.data.VESSEL;
|
|
|
|
var sVESSEL = member.data.VESSEL;
|
|
|
|
var sVOYNO = member.data.VOYNO;
|
|
|
|
var sVOYNO = member.data.VOYNO;
|
|
|
|
member.data.CTNALL = member.data.CTNALL.replace("HQ", "HC");
|
|
|
|
member.data.CTNALL = member.data.CTNALL.replace("HQ", "HC");
|
|
|
|
|
|
|
|
var _kgs = parseFloat(member.data.KGS);
|
|
|
|
|
|
|
|
var _tareweight = parseFloat(member.data.TAREWEIGHT);
|
|
|
|
|
|
|
|
var _WEIGHKGS = Add(_kgs,_tareweight);
|
|
|
|
|
|
|
|
|
|
|
|
var selectrecords = DsStoreQueryBy(this.storeBodyList, 'CNTRNO', member.data.CNTRNO);
|
|
|
|
var selectrecords = DsStoreQueryBy(this.storeBodyList, 'CNTRNO', member.data.CNTRNO);
|
|
|
|
if (selectrecords.length > 0) {
|
|
|
|
if (selectrecords.length > 0) {
|
|
|
|
for (var i = 0; i < this.storeBodyList.getCount(); i += 1) {
|
|
|
|
for (var i = 0; i < this.storeBodyList.getCount(); i += 1) {
|
|
|
|
var memberbody = this.storeBodyList.getAt(i);
|
|
|
|
var memberbody = this.storeBodyList.getAt(i);
|
|
|
|
if (memberbody.data.CNTRNO == member.data.CNTRNO) {
|
|
|
|
if (memberbody.data.CNTRNO == member.data.CNTRNO) {
|
|
|
|
|
|
|
|
|
|
|
|
if (member.data.SEALNO != '') {
|
|
|
|
if (member.data.SEALNO != '') {
|
|
|
|
memberbody.set("SEALNO", member.data.SEALNO.trim());
|
|
|
|
memberbody.set("SEALNO", member.data.SEALNO.trim());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (sKINDPKGS != '') {
|
|
|
|
if (sKINDPKGS != '') {
|
|
|
|
memberbody.set("KINDPKGS", sKINDPKGS);
|
|
|
|
memberbody.set("KINDPKGS", sKINDPKGS);
|
|
|
|
} else memberbody.set("KINDPKGS", member.data.KINDPKGS);
|
|
|
|
} else memberbody.set("KINDPKGS", member.data.KINDPKGS);
|
|
|
|
|
|
|
|
|
|
|
|
if (member.data.PKGS != 0) {
|
|
|
|
if (member.data.PKGS != 0) {
|
|
|
|
memberbody.set("PKGS", member.data.PKGS);
|
|
|
|
memberbody.set("PKGS", member.data.PKGS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (member.data.KGS != 0) {
|
|
|
|
if (member.data.KGS != 0) {
|
|
|
|
memberbody.set("KGS", member.data.KGS);
|
|
|
|
memberbody.set("KGS", member.data.KGS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (member.data.CBM != 0) {
|
|
|
|
if (member.data.CBM != 0) {
|
|
|
|
memberbody.set("CBM", member.data.CBM);
|
|
|
|
memberbody.set("CBM", member.data.CBM);
|
|
|
|
} if (member.data.WEIGHKGS != 0) {
|
|
|
|
}
|
|
|
|
memberbody.set("WEIGHKGS", member.data.WEIGHKGS);
|
|
|
|
|
|
|
|
memberbody.set("TTLWEIGHT", member.data.WEIGHKGS);
|
|
|
|
if (member.data.TAREWEIGHT != 0) {
|
|
|
|
|
|
|
|
memberbody.set("TAREWEIGHT", member.data.TAREWEIGHT);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (member.data.KGS != 0 && member.data.TAREWEIGHT != 0) {
|
|
|
|
|
|
|
|
memberbody.set("WEIGHKGS", _WEIGHKGS);
|
|
|
|
|
|
|
|
memberbody.set("TTLWEIGHT", _WEIGHKGS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
memberbody.commit();
|
|
|
|
memberbody.commit();
|
|
|
|
|
|
|
|
|
|
|
@ -14936,14 +14949,19 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
var addKINDPKGS = member.data.KINDPKGS;
|
|
|
|
var addKINDPKGS = member.data.KINDPKGS;
|
|
|
|
if (addKINDPKGS == '')
|
|
|
|
if (addKINDPKGS == '')
|
|
|
|
addKINDPKGS = sKINDPKGS;
|
|
|
|
addKINDPKGS = sKINDPKGS;
|
|
|
|
var CTNSTATUS = member.data.CTNSTATUS;
|
|
|
|
var CTNSTATUS = member.data.CTNSTATUS;
|
|
|
|
var MASTERNO = member.data.MASTERNO;
|
|
|
|
var MASTERNO = member.data.MASTERNO;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _kgs = parseFloat(member.data.KGS);
|
|
|
|
|
|
|
|
var _tareweight = parseFloat(member.data.TAREWEIGHT);
|
|
|
|
|
|
|
|
var _WEIGHKGS = Add(_kgs, _tareweight);
|
|
|
|
|
|
|
|
|
|
|
|
var newSerialno = this.DsGetNewNo(this.storeBodyList);
|
|
|
|
var newSerialno = this.DsGetNewNo(this.storeBodyList);
|
|
|
|
this.serialNo = newSerialno;
|
|
|
|
this.serialNo = newSerialno;
|
|
|
@ -14960,9 +14978,9 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
KGS: member.data.KGS,
|
|
|
|
KGS: member.data.KGS,
|
|
|
|
TAREWEIGHT: member.data.TAREWEIGHT,
|
|
|
|
TAREWEIGHT: member.data.TAREWEIGHT,
|
|
|
|
CBM: member.data.CBM,
|
|
|
|
CBM: member.data.CBM,
|
|
|
|
WEIGHTYPE: member.data.WEIGHTYPE,
|
|
|
|
WEIGHTYPE: "累加",
|
|
|
|
TTLWEIGHT: member.data.WEIGHKGS,
|
|
|
|
TTLWEIGHT: _WEIGHKGS,
|
|
|
|
WEIGHKGS: member.data.WEIGHKGS,
|
|
|
|
WEIGHKGS: _WEIGHKGS,
|
|
|
|
WEIGHATTN: custop,
|
|
|
|
WEIGHATTN: custop,
|
|
|
|
WEIGHTEL: custoptel,
|
|
|
|
WEIGHTEL: custoptel,
|
|
|
|
WEIGHSIGN: custop,
|
|
|
|
WEIGHSIGN: custop,
|
|
|
@ -15356,8 +15374,8 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
var KINDPKGS = this.formEdit.getForm().findField('KINDPKGS').getValue();
|
|
|
|
var KINDPKGS = this.formEdit.getForm().findField('KINDPKGS').getValue();
|
|
|
|
this.formEdit.getForm().findField('NOPKGS').setValue(PKGS + KINDPKGS);
|
|
|
|
this.formEdit.getForm().findField('NOPKGS').setValue(PKGS + KINDPKGS);
|
|
|
|
this.formEdit.getForm().findField('TOTALNO').setValue('SAY:' + ToEn(PKGS).toUpperCase() + ' ' + KINDPKGS + ' ONLY.');
|
|
|
|
this.formEdit.getForm().findField('TOTALNO').setValue('SAY:' + ToEn(PKGS).toUpperCase() + ' ' + KINDPKGS + ' ONLY.');
|
|
|
|
|
|
|
|
MsgTip(Zi.LAN.TiShi, jsonresult.Message);
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
//Ext.Msg.show({ title: Zi.LAN.TiShi, msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.ChuoWu, msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.ChuoWu, msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|