|
|
@ -502,6 +502,17 @@ namespace SCP.Views.BasicData |
|
|
|
} |
|
|
|
} |
|
|
|
lsVenders = lsVenders.Where(p => p.VendId.Contains(ddl_Vender.SelectedValue)).ToList(); |
|
|
|
foreach (var item in lsVenders) |
|
|
|
{ |
|
|
|
if ((item.Site == "BJBMPT") && (!string.IsNullOrEmpty(item.SubSite))) |
|
|
|
{ |
|
|
|
item.FactoryNameForView = DB.TA_FACTORY.FirstOrDefault(a => a.ErpDomain == item.Site && a.ErpSite == item.SubSite).FactoryName; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
item.FactoryNameForView = DB.TA_FACTORY.FirstOrDefault(a => a.ErpDomain == item.Site).FactoryName; |
|
|
|
} |
|
|
|
} |
|
|
|
if (lsVenders.Count == 0) |
|
|
|
{ |
|
|
|
Alert.Show("未查到符合条件供应商!"); |
|
|
|