Contacts page.

This commit is contained in:
2021-07-11 16:09:42 +01:00
parent 5043a629db
commit b8cfd87860
147 changed files with 1621 additions and 425 deletions
@@ -111,8 +111,9 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
if (!systemCodeCache.ContainsKey(systemCode))
systemCodeCache.Add(systemCode, SbmSystem.GetCodesOfType(UserContext, systemCode));
return systemCodeCache.GetValueOrDefault(systemCode, new List<TypeCodeDesc>());
return new List<TypeCodeDesc>(systemCodeCache.GetValueOrDefault(systemCode, new List<TypeCodeDesc>()));
}
public List<TypeCodeDesc> AffiliateTypeCodes { get { return GetCodesOfType(Sbm.SystemCode.AffiliateType); } }
//-------------------------------------------------------------------
// Managers.
@@ -1,4 +1,5 @@
using Sarand.BusinessMgr.Net.Standard.Base.Bus;
using Newtonsoft.Json;
using Sarand.BusinessMgr.Net.Standard.Base.Bus;
using Sarand.Net.Standard.Base.App;
using Sarand.Net.Standard.Base.Bus;
using Sarand.Net.Standard.Base.Core;
@@ -35,6 +36,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
//-------------------------------------------------------------------
// Properties.
[JsonIgnore]
public SbmUserContext UserContext { get; }
//-------------------------------------------------------------------
@@ -1,4 +1,5 @@
using Sarand.Net.Standard.Base.App;
using Newtonsoft.Json;
using Sarand.Net.Standard.Base.App;
namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
@@ -7,6 +8,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
//-------------------------------------------------------------------
// Construction.
[JsonConstructor]
protected SbmSessionContext(ushort index, Sbm.Application application) : base(index)
{
Index = index;
@@ -19,6 +19,8 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Bus
Pos,
Id,
// Affiliate.
Type,
Type_Code,
Type_Desc,
Name,
Abbrev,
@@ -734,7 +736,11 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Bus
// List parameters.
public enum StatusCat
{
Any, ActiveOnly,
Any,
CurrentOnly,
OnHoldOnly,
NotDeleted,
DeletedOnly,
}
/// <summary>
/// Item list parameters.
@@ -748,6 +754,8 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Bus
public Sbm.AffiliateType AffiliateType { get; set; } = Sbm.AffiliateType.Any;
public SysId AffiliateIdParent { get; set; }
public SysId UserId { get; set; }
/// <summary>Generic search value - name, phone, website, address etc.</summary>
public String Search { get; set; }
public String Name { get; set; }
public String NamePartial { get; set; }
public String PhonePartial { get; set; }
@@ -378,10 +378,13 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
switch ((SbmAffiliate.Column)column.Id)
{
// Affiliate type description.
case SbmAffiliate.Column.Type_Code:
case SbmAffiliate.Column.Type_Desc:
{
Sbm.AffiliateType affiliateType = (Sbm.AffiliateType)values.GetValue(column.DataName).AsLong();
value = new DataValue(AffiliateTypes.GetDescForType(affiliateType, affiliateType.ToString()));
if (column.Id == (int)SbmAffiliate.Column.Type_Desc)
value = new DataValue(AffiliateTypes.GetDescForType(affiliateType, affiliateType.ToString()));
else value = new DataValue(AffiliateTypes.GetCodeForType(affiliateType, affiliateType.ToString()));
}
break;
@@ -1,3 +0,0 @@
<div class="sax-email-header">
<div class="sax-content">Email Footer</div>
</div>
@@ -16,6 +16,7 @@
<div class="sax-para">Follow <span style="font-weight:bold;"><a href="[#Link.RequestPassword]">this link</a></span> to set a new password against your account.</div>
<div class="sax-para">This link will expire in [#Link.ExpiresMinutes] minutes.</div>
<div class="sax-para">Thank you.</div>
<div class="sax-para">Sarand BusinessMgr team</div>
</div>
</div>
[#Email.Footer]
@@ -0,0 +1,3 @@
<div class="sax-email-footer">
<div class="sax-content"></div>
</div>
@@ -1,9 +1,14 @@
body
html
{
font-size:10px;
}
body
{
margin: 0;
padding: 0;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 16px;
font-size: 1.6rem;
line-height: 1.5;
background-color: #fff;
}
@@ -32,6 +37,7 @@ td
.sax-email-header .sax-content
{
font-size:2.3rem;
}
.sax-email-body
@@ -41,7 +47,7 @@ td
.sax-email-panel-caption
{
margin: 12px 0;
font-size: 40px;
font-size: 3.2rem;
font-weight: bold;
color: #000;
background-color: transparent;
@@ -60,7 +66,7 @@ td
td.sax-label
{
padding: 4px 12px;
font-size: 16px;
font-size: 1.6rem;
text-align: right;
color: #808080;
white-space: nowrap;
@@ -69,7 +75,7 @@ td.sax-label
td.sax-value
{
padding-top: 4px;
font-size: 16px;
font-size: 1.6rem;
}
.sax-email-footer
@@ -81,6 +87,7 @@ td.sax-value
.sax-email-footer .sax-content
{
padding:12px 24px;
font-size:1.2rem;
}
.sax-email-footer .sax-content .sax-footer-lower

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 287 B

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

@@ -1,17 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Sarand.BusinessMgr.Net.Standard</RootNamespace>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Sarand.BusinessMgr.Net.Standard</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Common-VS\Workspace\SacsStandardAccounts\SacsStandardAccounts.csproj" />
<ProjectReference Include="..\..\..\Common-VS\Workspace\SacsStandardBase\SacsStandardBase.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Common-VS\Workspace\SacsStandardAccounts\SacsStandardAccounts.csproj" />
<ProjectReference Include="..\..\..\Common-VS\Workspace\SacsStandardBase\SacsStandardBase.csproj" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\**\*.*" />
</ItemGroup>
</Project>