117 lines
3.6 KiB
C#
117 lines
3.6 KiB
C#
using DocumentFormat.OpenXml.Drawing.Diagrams;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.App;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.Bus.Control;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.Core;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.Mgr.Control;
|
|
using Sarand.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Bus;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Core.Web.App
|
|
{
|
|
//=======================================================================
|
|
/// <summary>
|
|
/// Facade Instance configuration for core databases without Control configuration.
|
|
/// </summary>
|
|
public class SbmInstanceConfig_Core : SbmInstanceConfig
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Definitions.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SbmInstanceConfig_Core(SbmSessionContext_Web sessionContext)
|
|
{
|
|
this.SessionContext = sessionContext;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
private SbmSessionContext_Web SessionContext { get; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Configuration rules.
|
|
//-------------------------------------------------------------------
|
|
// Application options.
|
|
|
|
// Supported application options.
|
|
public override bool AllowApplicationOption(Sbm.ConfigOption option, bool defaultResponse)
|
|
{
|
|
return defaultResponse;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Defaults.
|
|
|
|
public override ISbmInstanceConfig.DefaultsData GetDefaults()
|
|
{
|
|
return new ISbmInstanceConfig.DefaultsData();
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Contacts.
|
|
|
|
// Supported Affiliate types.
|
|
public override bool AllowAffiliateType(Sbm.AffiliateType affiliateType, bool defaultResponse)
|
|
{
|
|
return defaultResponse;
|
|
}
|
|
|
|
// Supported Association types.
|
|
public override bool AllowAssociationType(Sbm.AssociationType affiliateType, bool defaultResponse)
|
|
{
|
|
return defaultResponse;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Transactions.
|
|
|
|
// Supported Transaction types.
|
|
public override bool AllowTransactionType(Sbm.TransactionType affiliateType, bool defaultResponse)
|
|
{
|
|
return defaultResponse;
|
|
}
|
|
|
|
// Transaction reference sequence length.
|
|
public override int GetTransactionRefSeqLength(SysId affiliateId_Owner, SysId idAssoc, Sbm.TransactionType transactionType, int defaultResponse)
|
|
{
|
|
return defaultResponse;
|
|
}
|
|
|
|
// Transaction reference prefix by type.
|
|
public override String GetTransactionRefPrefix(SysId affiliateId_Owner, SysId idAssoc, Sbm.TransactionType transactionType, String defaultResponse)
|
|
{
|
|
return defaultResponse;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Interfaces.
|
|
|
|
public override bool AllowInterfaceCategory(SaInterfaceCategory interfaceCategory, bool defaultResponse)
|
|
{
|
|
return defaultResponse;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Update Log.
|
|
|
|
public override bool IsColumnChangeLogged(SbmDbDfn.ColumnIdx column, bool defaultResponse)
|
|
{
|
|
return defaultResponse;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|