jianghaiqing 2 years ago
commit 1ff9bad2da

@ -455,7 +455,7 @@ namespace Myshipping.Application
throw Oops.Bah(ms); throw Oops.Bah(ms);
} }
JsonUtil.PropToUpper(input, "ORDNO", "BSSTATUS", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME"); JsonUtil.PropToUpper(input, "ORDNO", "BSSTATUS", "YARDID", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME");
if (input.ctnInputs != null) if (input.ctnInputs != null)
{ {
var groupList = input.ctnInputs.Where(x => x.CTNNUM > 0).GroupBy(c => c.CTNALL).Select(g => $"{g.Key}*{g.Sum(gg => gg.CTNNUM)}"); var groupList = input.ctnInputs.Where(x => x.CTNNUM > 0).GroupBy(c => c.CTNALL).Select(g => $"{g.Key}*{g.Sum(gg => gg.CTNNUM)}");
@ -740,7 +740,7 @@ namespace Myshipping.Application
[HttpPost("/BookingOrder/Add")] [HttpPost("/BookingOrder/Add")]
public async Task<long> Add(BookingOrderDto input) public async Task<long> Add(BookingOrderDto input)
{ {
JsonUtil.PropToUpper(input, "ORDNO", "BSSTATUS", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME"); JsonUtil.PropToUpper(input, "ORDNO", "BSSTATUS", "YARDID", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME");
var ms = JsonUtil.TrimFields(input); var ms = JsonUtil.TrimFields(input);
if (!string.IsNullOrEmpty(ms)) if (!string.IsNullOrEmpty(ms))
{ {
@ -860,7 +860,7 @@ namespace Myshipping.Application
public async Task Update(BookingOrderDto input) public async Task Update(BookingOrderDto input)
{ {
JsonUtil.PropToUpper(input, "ORDNO", "BSSTATUS", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME"); JsonUtil.PropToUpper(input, "ORDNO", "BSSTATUS", "YARDID", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME");
JsonUtil.TrimFields(input); JsonUtil.TrimFields(input);
if (input.ctnInputs != null) if (input.ctnInputs != null)
{ {

@ -441,7 +441,7 @@ namespace Myshipping.Application
throw Oops.Bah("请填写提单号!"); throw Oops.Bah("请填写提单号!");
} }
JsonUtil.PropToUpper(model, "ORDNO", "BSSTATUS", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME"); JsonUtil.PropToUpper(model, "ORDNO", "BSSTATUS", "YARDID", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME");
var ms = JsonUtil.TrimFields(model); var ms = JsonUtil.TrimFields(model);
if (!string.IsNullOrEmpty(ms)) if (!string.IsNullOrEmpty(ms))
{ {
@ -599,7 +599,7 @@ namespace Myshipping.Application
{ {
throw Oops.Bah("请填写分提单号!"); throw Oops.Bah("请填写分提单号!");
} }
JsonUtil.PropToUpper(item, "ORDNO", "BSSTATUS", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME"); JsonUtil.PropToUpper(item, "ORDNO", "BSSTATUS", "YARDID", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME");
var fms = JsonUtil.TrimFields(item); var fms = JsonUtil.TrimFields(item);
if (!string.IsNullOrEmpty(fms)) if (!string.IsNullOrEmpty(fms))
@ -863,7 +863,7 @@ namespace Myshipping.Application
throw Oops.Bah("请填写提单号!"); throw Oops.Bah("请填写提单号!");
} }
JsonUtil.PropToUpper(model, "ORDNO", "BSSTATUS", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME"); JsonUtil.PropToUpper(model, "ORDNO", "BSSTATUS", "YARDID", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME");
var ms = JsonUtil.TrimFields(model); var ms = JsonUtil.TrimFields(model);
if (!string.IsNullOrEmpty(ms)) if (!string.IsNullOrEmpty(ms))
@ -1181,7 +1181,7 @@ namespace Myshipping.Application
{ {
throw Oops.Bah("请填写分提单号!"); throw Oops.Bah("请填写分提单号!");
} }
JsonUtil.PropToUpper(item, "ORDNO", "BSSTATUS", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME"); JsonUtil.PropToUpper(item, "ORDNO", "BSSTATUS", "YARDID", "YardContract", "YardContractTel", "YardContractEmail", "MARKS", "DESCRIPTION", "CONSIGNEENAME", "SHIPPERNAME", "NOTIFYPARTYNAME");
var fms = JsonUtil.TrimFields(item); var fms = JsonUtil.TrimFields(item);
if (!string.IsNullOrEmpty(fms)) if (!string.IsNullOrEmpty(fms))

Loading…
Cancel
Save