|
|
@ -50,7 +50,22 @@ namespace SCP.Views.BasicData |
|
|
|
if (lsFacID != null && lsFacID.Count > 0) |
|
|
|
{ |
|
|
|
_list = _list.Where(p => lsFacID.Contains(p.Site)).ToList(); |
|
|
|
if (_list.Count() > 0) |
|
|
|
{ |
|
|
|
foreach (var item in _list) |
|
|
|
{ |
|
|
|
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; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
lsVenders = _list; |
|
|
|
|
|
|
|
var list = Sort<TA_VENDER>(_list.AsQueryable(), Grid_Vender); |
|
|
@ -163,7 +178,7 @@ namespace SCP.Views.BasicData |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
foreach (TA_VENDER vender in lsVenders) |
|
|
|
{ |
|
|
|
if (lsCheckVenderID.Count == 0) |
|
|
|