Contacts
This commit is contained in:
@@ -15,12 +15,11 @@ using System.Linq;
|
||||
|
||||
namespace Sarand.BusinessMgr.Net.Standard.Dbas.Mgr
|
||||
{
|
||||
//=======================================================================
|
||||
// Commodity Manager - Commodity Supplier.
|
||||
//=======================================================================
|
||||
partial class SbmCommodityMgr_Dbas
|
||||
{
|
||||
//*******************************************************************
|
||||
// C o m m o d i t i e s S u p p l i e r
|
||||
//*******************************************************************
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
@@ -36,7 +35,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Mgr
|
||||
}
|
||||
public override bool CanManageCommoditySuppliers()
|
||||
{
|
||||
if (ConfigConsole == null || !AllowConfigOption(Sbm.ConfigOption.CommoditySuppliers)) return false;
|
||||
if (SessionConsole == null || !AllowConfigOption(Sbm.ConfigOption.CommoditySuppliers)) return false;
|
||||
return db != null && db.TableExists(SbmDbDfn.GetTableName(SbmDbDfn.TableIdx.CommoditySupplier));
|
||||
}
|
||||
|
||||
@@ -393,10 +392,10 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Mgr
|
||||
List<String> filter = new List<String>();
|
||||
|
||||
// CommoditySupplier Id.
|
||||
String includedIds = prm.IncludedIds.Concat(",");
|
||||
String includedIds = prm.IdsIncluded.Concat(",");
|
||||
if (!includedIds.IsEmpty())
|
||||
filter.Add(SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.CommoditySupplier_CommodityId, aliasCommoditySupplier) + " IN (" + includedIds + ")");
|
||||
String excludedIds = prm.ExcludedIds.Concat(",");
|
||||
String excludedIds = prm.IdsExcluded.Concat(",");
|
||||
if (!excludedIds.IsEmpty())
|
||||
filter.Add(SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.CommoditySupplier_CommodityId, aliasCommoditySupplier) + " NOT IN (" + excludedIds + ")");
|
||||
|
||||
@@ -608,7 +607,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Mgr
|
||||
// Populate filter.
|
||||
query.Filters.AddRange(GetCommoditySupplierQueryFilter(prm));
|
||||
|
||||
if (prm.IncludedIds.Count != 1)
|
||||
if (prm.IdsIncluded.Count != 1)
|
||||
{
|
||||
// Configure sort sequence.
|
||||
foreach (String sortColumn in GetCommoditySupplierSortColumns(prm))
|
||||
|
||||
Reference in New Issue
Block a user