20230111-1

DS7_JingHan
ddlucky 2 years ago
parent 71b6213fef
commit 307d69b700

@ -206,24 +206,27 @@ namespace DSWeb.Areas.CommMng.DAL
var CurrChfeelist = cdc.ch_fee.Where(x => x.BSNO == BSNO && x.BXGID=="GMY").ToList(); var CurrChfeelist = cdc.ch_fee.Where(x => x.BSNO == BSNO && x.BXGID=="GMY").ToList();
foreach (var item in FeeHead.COSTS) {
//20230103 导入费用时先删除所有能删的费用 //20230103 导入费用时先删除所有能删的费用
var = cdc.ch_fee.Where(x => x.BSNO == BSNO).ToList(); var = cdc.ch_fee.Where(x => x.BSNO == BSNO).ToList();
var delgidListstr = ""; var delgidListstr = "";
foreach (var item2 in ) { foreach (var item2 in )
if( MsChFeeDAL.ChFeeCanChange(item2)) { {
if (MsChFeeDAL.ChFeeCanChange(item2))
{
var delgidstr = "'" + item2.GID + "'"; var delgidstr = "'" + item2.GID + "'";
if (delgidListstr != "") delgidListstr += ","; if (delgidListstr != "") delgidListstr += ",";
delgidListstr += delgidstr; delgidListstr += delgidstr;
} }
} }
if (delgidListstr != "") { if (delgidListstr != "")
{
delgidListstr += BasicDataRefDAL.ExecSql($"delete from ch_fee where gid in({delgidListstr})"); delgidListstr += BasicDataRefDAL.ExecSql($"delete from ch_fee where gid in({delgidListstr})");
} }
foreach (var item in FeeHead.COSTS) {
var customername= cdc.code_cust_edi.FirstOrDefault(x => x.EDINAME == "关贸云" && x.EDICODE == item.COAGENT_ID); var customername= cdc.code_cust_edi.FirstOrDefault(x => x.EDINAME == "关贸云" && x.EDICODE == item.COAGENT_ID);
CUSTOMER = cdc.info_client.FirstOrDefault(x => x.SHORTNAME == customername.CUST); CUSTOMER = cdc.info_client.FirstOrDefault(x => x.SHORTNAME == customername.CUST);

Loading…
Cancel
Save