Browse Source

添加查询时候的地点

master
qian 1 year ago
parent
commit
29eb07018e
  1. 11
      北京北汽/SCP/Views/BasicData/SCP_VenderUser.aspx.cs

11
北京北汽/SCP/Views/BasicData/SCP_VenderUser.aspx.cs

@ -502,6 +502,17 @@ namespace SCP.Views.BasicData
} }
} }
lsVenders = lsVenders.Where(p => p.VendId.Contains(ddl_Vender.SelectedValue)).ToList(); 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) if (lsVenders.Count == 0)
{ {
Alert.Show("未查到符合条件供应商!"); Alert.Show("未查到符合条件供应商!");

Loading…
Cancel
Save