海运出口委托管理,引入场站数据,改为用重量+皮重填充参考重量和称重重量,并将称重方式默认为累加

DS7_JinGang
ddlucky 2 years ago
parent af2071de06
commit b9b42028f4

@ -7785,7 +7785,7 @@ namespace DSWeb.MvcShipping.Controllers
#endregion #endregion
#region 获取场站数据 #region 获取场站数据 引入场站数据
public ContentResult GetyardctnList(string bsno, string mblno, string yard, bool isweb = false,string jck="all") public ContentResult GetyardctnList(string bsno, string mblno, string yard, bool isweb = false,string jck="all")
{ {
string userid = Convert.ToString(Session["USERID"]); string userid = Convert.ToString(Session["USERID"]);

@ -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 });

Loading…
Cancel
Save