hanxuntao 5 months ago
commit 43f2b9f928

@ -254,6 +254,8 @@ namespace DSWeb.Areas.CommMng.Models
private List<tSysEnumValue_md> { get; set; } private List<tSysEnumValue_md> { get; set; }
private List<tSysEnumValue_md> { get; set; }
private decimal GetPrice(string BILLFeeName) { private decimal GetPrice(string BILLFeeName) {
if (.Exists(x => x.EnumValueID == BILLFeeName)) { if (.Exists(x => x.EnumValueID == BILLFeeName)) {
return Convert.ToDecimal(.First(x => x.EnumValueID == BILLFeeName).EnumValueName); return Convert.ToDecimal(.First(x => x.EnumValueID == BILLFeeName).EnumValueName);
@ -377,6 +379,8 @@ namespace DSWeb.Areas.CommMng.Models
= cdc.tSysEnumValue.Where(x => x.EnumTypeID == 46).ToList(); = cdc.tSysEnumValue.Where(x => x.EnumTypeID == 46).ToList();
= cdc.tSysEnumValue.Where(x => x.EnumTypeID == 47).ToList();
var currfee = cdc.ch_fee.Where(x => x.BSNO == head.BSNO).ToList(); var currfee = cdc.ch_fee.Where(x => x.BSNO == head.BSNO).ToList();
@ -639,7 +643,11 @@ namespace DSWeb.Areas.CommMng.Models
var ctn20 = GetPrice("20"); var ctn20 = GetPrice("20");
var ctn40 = GetPrice("40"); var ctn40 = GetPrice("40");
if (head.PORTDISCHARGE == "KAOHSIUNG") var All40RH = GetPrice("40RH");
if (.Exists(x=>x.EnumValueName== head.PORTDISCHARGE) )
{ {
foreach (var ctn in ctnList) foreach (var ctn in ctnList)
{ {
@ -945,7 +953,8 @@ namespace DSWeb.Areas.CommMng.Models
var ctn20 = GetPrice("20"); var ctn20 = GetPrice("20");
var ctn40 = GetPrice("40"); var ctn40 = GetPrice("40");
if (head.PORTDISCHARGE == "KAOHSIUNG") //if (head.PORTDISCHARGE == "KAOHSIUNG")
if (.Exists(x=>x.EnumValueName== head.PORTDISCHARGE))
{ {
foreach (var ctn in ctnList) foreach (var ctn in ctnList)
{ {

Loading…
Cancel
Save