|
|
@ -11048,9 +11048,9 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.isfen && this.opStatus == 'add') {
|
|
|
|
if (_this.isfen && _this.opStatus == 'add') {
|
|
|
|
var condition = "BSNO='" + _this.MainEditRecord.get('BSNO') + "'";
|
|
|
|
var condition = "BSNO='" + _this.MainEditRecord.get('BSNO') + "'";
|
|
|
|
} else if (this.opStatus == 'add') {
|
|
|
|
} else if (_this.opStatus == 'add' ||_this.opStatus == 'copyadd') {
|
|
|
|
var condition = "BSNO='xxxxxx'";
|
|
|
|
var condition = "BSNO='xxxxxx'";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
@ -13215,6 +13215,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
params: { condition: "BSNO='" + bsno + "'" },
|
|
|
|
params: { condition: "BSNO='" + bsno + "'" },
|
|
|
|
callback: function (r, options, success) {
|
|
|
|
callback: function (r, options, success) {
|
|
|
|
if (success) {
|
|
|
|
if (success) {
|
|
|
|
|
|
|
|
if (_this.opStatus == 'copyadd') {
|
|
|
|
if (_this.storeBodyList.getCount() > 0) {
|
|
|
|
if (_this.storeBodyList.getCount() > 0) {
|
|
|
|
for (var j = 0; j < _this.storeBodyList.getCount(); j += 1) {
|
|
|
|
for (var j = 0; j < _this.storeBodyList.getCount(); j += 1) {
|
|
|
|
var memberbody = _this.storeBodyList.getAt(j);
|
|
|
|
var memberbody = _this.storeBodyList.getAt(j);
|
|
|
@ -13224,7 +13225,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
memberbody.set("SEALNO", "");
|
|
|
|
memberbody.set("SEALNO", "");
|
|
|
|
memberbody.set("PKGS", 0);
|
|
|
|
memberbody.set("PKGS", 0);
|
|
|
|
memberbody.set("KGS", 0);
|
|
|
|
memberbody.set("KGS", 0);
|
|
|
|
memberbody.set("CBM",0);
|
|
|
|
memberbody.set("CBM", 0);
|
|
|
|
memberbody.commit();
|
|
|
|
memberbody.commit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -13234,12 +13235,14 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
_this.copybill = false;
|
|
|
|
_this.copybill = false;
|
|
|
|
_this.copyfee = false;
|
|
|
|
_this.copyfee = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//_this.opStatus = 'add';
|
|
|
|
|
|
|
|
//_this.copybill = false;
|
|
|
|
|
|
|
|
//_this.copyfee = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
});
|
|
|
|
});
|
|
|
|
_this.opStatus = 'add';
|
|
|
|
|
|
|
|
_this.copybill = false;
|
|
|
|
|
|
|
|
_this.copyfee = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//_this.storeBodyList.removeAll();
|
|
|
|
//_this.storeBodyList.removeAll();
|
|
|
|
_this.opStatus = 'add';
|
|
|
|
_this.opStatus = 'add';
|
|
|
@ -13804,7 +13807,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
url: '/MvcShipping/MsOpSeae/SaveAll',
|
|
|
|
url: '/MvcShipping/MsOpSeae/SaveAll',
|
|
|
|
scope: this,
|
|
|
|
scope: this,
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
opstatus: this.opStatus,
|
|
|
|
opstatus: _thisseaeedit.opStatus,
|
|
|
|
data: Ext.JSON.encode(data),
|
|
|
|
data: Ext.JSON.encode(data),
|
|
|
|
data2: data2js,
|
|
|
|
data2: data2js,
|
|
|
|
data3: Ext.JSON.encode(data3),
|
|
|
|
data3: Ext.JSON.encode(data3),
|
|
|
@ -13836,11 +13839,13 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
if (this.opStatus == 'add') {
|
|
|
|
if (this.opStatus == 'add') {
|
|
|
|
|
|
|
|
this.opStatus = 'edit';
|
|
|
|
var arrNewRecords = this.StoreList.insert(0, returnData);
|
|
|
|
var arrNewRecords = this.StoreList.insert(0, returnData);
|
|
|
|
this.editRecord = this.StoreList.getAt(0);
|
|
|
|
this.editRecord = this.StoreList.getAt(0);
|
|
|
|
if (type == '0') {
|
|
|
|
if (type == '0') {
|
|
|
|
this.opStatus = 'edit';
|
|
|
|
this.opStatus = 'edit';
|
|
|
|
basicForm2.findField('BSNO').setDisabled(true);
|
|
|
|
basicForm2.findField('BSNO').setDisabled(true);
|
|
|
|
|
|
|
|
//this.storeBodyList.reload();
|
|
|
|
for (var j = 0; j < this.storeBodyList.getCount(); j += 1) {
|
|
|
|
for (var j = 0; j < this.storeBodyList.getCount(); j += 1) {
|
|
|
|
var memberbody = this.storeBodyList.getAt(j);
|
|
|
|
var memberbody = this.storeBodyList.getAt(j);
|
|
|
|
memberbody.set("BSNO", this.editRecord.get('BSNO'));
|
|
|
|
memberbody.set("BSNO", this.editRecord.get('BSNO'));
|
|
|
@ -13855,6 +13860,8 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
if (type == '0') {
|
|
|
|
if (type == '0') {
|
|
|
|
this.opStatus = 'edit';
|
|
|
|
this.opStatus = 'edit';
|
|
|
|
basicForm2.findField('BSNO').setDisabled(true);
|
|
|
|
basicForm2.findField('BSNO').setDisabled(true);
|
|
|
|
|
|
|
|
//this.storeBodyList.reload();
|
|
|
|
|
|
|
|
|
|
|
|
for (var j = 0; j < this.storeBodyList.getCount(); j += 1) {
|
|
|
|
for (var j = 0; j < this.storeBodyList.getCount(); j += 1) {
|
|
|
|
var memberbody = this.storeBodyList.getAt(j);
|
|
|
|
var memberbody = this.storeBodyList.getAt(j);
|
|
|
|
memberbody.set("BSNO", this.editRecord.get('BSNO'));
|
|
|
|
memberbody.set("BSNO", this.editRecord.get('BSNO'));
|
|
|
@ -13879,6 +13886,8 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
if (type == '0') {
|
|
|
|
if (type == '0') {
|
|
|
|
this.opStatus = 'edit';
|
|
|
|
this.opStatus = 'edit';
|
|
|
|
basicForm2.findField('BSNO').setDisabled(true);
|
|
|
|
basicForm2.findField('BSNO').setDisabled(true);
|
|
|
|
|
|
|
|
//this.storeBodyList.reload();
|
|
|
|
|
|
|
|
|
|
|
|
for (var j = 0; j < this.storeBodyList.getCount(); j += 1) {
|
|
|
|
for (var j = 0; j < this.storeBodyList.getCount(); j += 1) {
|
|
|
|
var memberbody = this.storeBodyList.getAt(j);
|
|
|
|
var memberbody = this.storeBodyList.getAt(j);
|
|
|
|
memberbody.set("BSNO", this.editRecord.get('BSNO'));
|
|
|
|
memberbody.set("BSNO", this.editRecord.get('BSNO'));
|
|
|
@ -15744,7 +15753,8 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
|
|
|
|
if (success) {
|
|
|
|
if (success) {
|
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
|
if (jsonresult.Success) {
|
|
|
|
if (jsonresult.Success) {
|
|
|
|
this.storeBodyList.reload();
|
|
|
|
var condition = "BSNO='" + this.editRecord.get('BSNO') + "'";
|
|
|
|
|
|
|
|
this.storeBodyList.load({ params: { condition: condition } });
|
|
|
|
this.setAllTotal();
|
|
|
|
this.setAllTotal();
|
|
|
|
var KGS = this.formEdit.getForm().findField('KGS').getValue();
|
|
|
|
var KGS = this.formEdit.getForm().findField('KGS').getValue();
|
|
|
|
this.formEdit.getForm().findField('GROSSWEIGHT').setValue(KGS + 'KGS');
|
|
|
|
this.formEdit.getForm().findField('GROSSWEIGHT').setValue(KGS + 'KGS');
|
|
|
|