|
|
|
@ -20,7 +20,6 @@ using DSWeb.MvcShipping.Helper;
|
|
|
|
|
using DSWeb.MvcShipping.Helper.Repository;
|
|
|
|
|
using DSWeb.MvcShipping.Models.MsInfoClient;
|
|
|
|
|
using DSWeb.MvcShipping.Models.MsOpApply;
|
|
|
|
|
using DSWeb.ParameterSet;
|
|
|
|
|
using DSWeb.SoftMng.Model;
|
|
|
|
|
using DSWeb.TruckMng.Comm.Cookie;
|
|
|
|
|
|
|
|
|
@ -229,11 +228,7 @@ namespace DSWeb.Areas.CommMng.DAL
|
|
|
|
|
feecustidList.Add(costs.COAGENT_ID.ToString());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var feecodelist=new List<string>();
|
|
|
|
|
foreach (var costs in FeeHead.COSTS)
|
|
|
|
|
{
|
|
|
|
|
feecodelist.Add(costs.FEE_TYPE_CODE.ToString());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var customernameList = cdc.code_cust_edi.Where(x => x.EDINAME == "关贸云" && feecustidList.Contains(x.EDICODE) ).ToList();
|
|
|
|
|
|
|
|
|
@ -263,15 +258,7 @@ namespace DSWeb.Areas.CommMng.DAL
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var feelist = cdc.code_fee_edi.Where(x => feecodelist.Contains(x.FEEENAME)).ToList();
|
|
|
|
|
foreach (var costs in FeeHead.COSTS)
|
|
|
|
|
{
|
|
|
|
|
if (!feelist.Exists(x => x.FEEENAME == costs.FEE_TYPE_CODE)) {
|
|
|
|
|
result = new JsonResponse { Success = false, Message = "【" + costs.FEE_TYPE_CODE + "】没有对应的费用名称" };
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var CurrChfeelist = cdc.ch_fee.Where(x => x.BSNO == BSNO && x.BXGID=="GMY").ToList();
|
|
|
|
|
|
|
|
|
@ -572,11 +559,7 @@ namespace DSWeb.Areas.CommMng.DAL
|
|
|
|
|
string BSNO = FeeHead.JOB_ID;
|
|
|
|
|
string CUSTOMERNAME = CUSTOMER.SHORTNAME;
|
|
|
|
|
int FEETYPE=Fee.BALANCE_DIRECTION_ID.ToUpper() == "PAYOUT" ? 2 : 1;
|
|
|
|
|
var cdc = new CommonDataContext();
|
|
|
|
|
|
|
|
|
|
//string FEENAME = string.IsNullOrWhiteSpace( Fee.FEE_TYPE_NAME)?Fee.MEMO: Fee.FEE_TYPE_NAME;
|
|
|
|
|
string FEENAME = cdc.code_fee_edi.First(x => x.FEEENAME==Fee.FEE_TYPE_CODE).FEENAME;
|
|
|
|
|
|
|
|
|
|
string FEENAME = string.IsNullOrWhiteSpace( Fee.FEE_TYPE_NAME)?Fee.MEMO: Fee.FEE_TYPE_NAME;
|
|
|
|
|
decimal AMOUNT = Fee.AMOUNT==null?0:(decimal)Fee.AMOUNT;
|
|
|
|
|
string UNIT = "";
|
|
|
|
|
decimal QUANTITY = Fee.UNIT_NUMBER == null ? 0 : (decimal)Fee.UNIT_NUMBER;
|
|
|
|
|