|
|
@ -39,18 +39,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
var type = property.Where(p => p.Name == "Type").FirstOrDefault().Value; |
|
|
|
var isout = property.Where(p => p.Name == "IsOut").FirstOrDefault().Value; |
|
|
|
var email = string.Empty; |
|
|
|
// property.Where(p => p.Name == "CurrentUserEmail").FirstOrDefault().Value;
|
|
|
|
// property.Where(p => p.Name == "CurrentUserEmail").FirstOrDefault().Value;
|
|
|
|
var list = billList.Split(","); |
|
|
|
|
|
|
|
var projectList = _dbcontext.Set<CodeSetting>().Where(p => p.Project == "库位").ToList(); |
|
|
|
|
|
|
|
var projectList = _dbcontext.Set<CodeSetting>().Where(p => p.Project == "库位").ToList(); |
|
|
|
var jisbbac= projectList.FirstOrDefault(p => p.Value == "JisBBAC").Description; |
|
|
|
var jisbbac_sy= projectList.FirstOrDefault(p => p.Value == "JisBBAC顺义").Description; |
|
|
|
var yindujian= projectList.FirstOrDefault(p => p.Value == "YinDuJian").Description; |
|
|
|
var beijian= projectList.FirstOrDefault(p => p.Value == "BeiJian").Description; |
|
|
|
|
|
|
|
|
|
|
|
if (type == "JisBBAC" || type == "ZhiGongJianBBAC" || type == "MaiDanJianBBAC" || type == "BeiJian" || type== "YinDuJian") |
|
|
|
if (type == "JisBBAC" || type == "ZhiGongJianBBAC" || type == "MaiDanJianBBAC" || type == "BeiJian" || type== "YinDuJian") |
|
|
|
{ |
|
|
|
var jisdetail = _dbcontext.Set<BBAC_PD_DETAIL>().Where(p => list.Contains(p.BillNum) && p.BusinessType == EnumBusinessType.JisBBAC);//jis
|
|
|
|
if (jisdetail != null && jisdetail.Count() > 0) |
|
|
@ -62,13 +59,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
itm.Extend2 =jisbbac; |
|
|
|
itm.Extend3 = "有结算无发运"; |
|
|
|
} |
|
|
|
|
|
|
|
if (itm.Site == "1046" && string.IsNullOrEmpty(itm.Extend2)) |
|
|
|
{ |
|
|
|
itm.Extend2 =jisbbac_sy; |
|
|
|
itm.Extend3 = "有结算无发运"; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
Sync(jisdetail.ToList(), EnumDeliverBjBmpBillType.JIS件, email, isout == "out" ? true : false); |
|
|
|
} |
|
|
|