Compare commits
3 Commits
c360dafeaa
...
de6698bab8
| Author | SHA1 | Date |
|---|---|---|
|
|
de6698bab8 | |
|
|
04526ceb3d | |
|
|
6acb0c0c8f |
|
|
@ -1,11 +1,9 @@
|
||||||
using AyCode.Core.Extensions;
|
using AyCode.Core.Loggers;
|
||||||
using AyCode.Core.Loggers;
|
|
||||||
using AyCode.Models.Server.DynamicMethods;
|
using AyCode.Models.Server.DynamicMethods;
|
||||||
using AyCode.Services.SignalRs;
|
using AyCode.Services.SignalRs;
|
||||||
using FruitBank.Common.Interfaces;
|
using FruitBank.Common.Interfaces;
|
||||||
using FruitBank.Common.Loggers;
|
using FruitBank.Common.Loggers;
|
||||||
using FruitBank.Common.SignalRs;
|
using FruitBank.Common.SignalRs;
|
||||||
using Microsoft.AspNetCore.SignalR;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
|
|
||||||
namespace FruitBank.Common.Server.Services.SignalRs;
|
namespace FruitBank.Common.Server.Services.SignalRs;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
using AyCode.Core.Consts;
|
using AyCode.Services.Server.SignalRs;
|
||||||
using AyCode.Services.Server.SignalRs;
|
|
||||||
using FruitBank.Common.Server.Services.Loggers;
|
using FruitBank.Common.Server.Services.Loggers;
|
||||||
using Microsoft.AspNetCore.SignalR;
|
|
||||||
|
|
||||||
namespace FruitBank.Common.Server.Services.SignalRs;
|
namespace FruitBank.Common.Server.Services.SignalRs;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,11 @@ public class Partner : MgEntityBase, IPartner
|
||||||
public string City { get; set; }
|
public string City { get; set; }
|
||||||
public string Street { get; set; }
|
public string Street { get; set; }
|
||||||
|
|
||||||
|
[Association(ThisKey = nameof(Id), OtherKey = nameof(ShippingDocument.ShippingId))]
|
||||||
|
public List<ShippingDocument>? ShippingDocuments { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[SkipValuesOnUpdate]
|
[SkipValuesOnUpdate]
|
||||||
public DateTime Created { get; set; }
|
public DateTime Created { get; set; }
|
||||||
public DateTime Modified { get; set; }
|
public DateTime Modified { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@ public class ShippingDocument : MgEntityBase, IShippingDocument
|
||||||
public int ShippingId { get; set; }
|
public int ShippingId { get; set; }
|
||||||
public DateTime ShippingDate { get; set; }
|
public DateTime ShippingDate { get; set; }
|
||||||
public string Country { get; set; }
|
public string Country { get; set; }
|
||||||
|
public bool IsAllMeasured { get; set; }
|
||||||
|
|
||||||
|
[Association(ThisKey = nameof(ShippingId), OtherKey = nameof(Shipping.Id))]
|
||||||
|
public Shipping? Shipping{ get; set; }
|
||||||
|
|
||||||
[Association(ThisKey = nameof(PartnerId), OtherKey = nameof(Partner.Id))]
|
[Association(ThisKey = nameof(PartnerId), OtherKey = nameof(Partner.Id))]
|
||||||
public Partner? Partner { get; set; }
|
public Partner? Partner { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ public class ShippingItem : MgEntityBase, IShippingItem
|
||||||
public double? MeasuredGrossWeight { get; set; }
|
public double? MeasuredGrossWeight { get; set; }
|
||||||
public bool IsMeasured { get; set; }
|
public bool IsMeasured { get; set; }
|
||||||
|
|
||||||
|
[Association(ThisKey = nameof(ShippingDocumentId), OtherKey = nameof(ShippingDocument.Id))]
|
||||||
|
public ShippingDocument? ShippingDocument { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[SkipValuesOnUpdate]
|
[SkipValuesOnUpdate]
|
||||||
public DateTime Created { get; set; }
|
public DateTime Created { get; set; }
|
||||||
public DateTime Modified { get; set; }
|
public DateTime Modified { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ public static class FruitBankConstClient
|
||||||
public static string DefaultLocale = "en-US";
|
public static string DefaultLocale = "en-US";
|
||||||
|
|
||||||
public static string BaseUrl = "https://localhost:59579"; //FrutiBank nop
|
public static string BaseUrl = "https://localhost:59579"; //FrutiBank nop
|
||||||
|
//public static string BaseUrl = "http://10.0.2.2:59579"; //FrutiBank (android) nop
|
||||||
//public static string BaseUrl = "https://localhost:7144"; //HybridApp
|
//public static string BaseUrl = "https://localhost:7144"; //HybridApp
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ public interface IShippingDocument: IEntityInt, ITimeStampInfo
|
||||||
public int ShippingId { get; set; }
|
public int ShippingId { get; set; }
|
||||||
public DateTime ShippingDate { get; set; }
|
public DateTime ShippingDate { get; set; }
|
||||||
public string Country { get; set; }
|
public string Country { get; set; }
|
||||||
|
public bool IsAllMeasured { get; set; }
|
||||||
|
|
||||||
public Partner? Partner { get; set; }
|
public Partner? Partner { get; set; }
|
||||||
public List<ShippingItem>? ShippingItems { get; set; }
|
public List<ShippingItem>? ShippingItems { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
using System;
|
using AyCode.Core.Interfaces;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using AyCode.Core.Interfaces;
|
|
||||||
using FruitBank.Common.Entities;
|
using FruitBank.Common.Entities;
|
||||||
|
|
||||||
namespace FruitBank.Common.Models
|
namespace FruitBank.Common.Models
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ namespace FruitBankHybrid.Shared.Tests
|
||||||
var shippingItems = await _signalRClient.GetShippingItems();
|
var shippingItems = await _signalRClient.GetShippingItems();
|
||||||
|
|
||||||
Assert.IsNotNull(shippingItems);
|
Assert.IsNotNull(shippingItems);
|
||||||
Assert.IsTrue(shippingItems.Any());
|
Assert.IsTrue(shippingItems.Count != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//[TestMethod]
|
//[TestMethod]
|
||||||
|
|
@ -216,7 +216,7 @@ namespace FruitBankHybrid.Shared.Tests
|
||||||
var users = await _signalRClient.GetMeasuringUsers();
|
var users = await _signalRClient.GetMeasuringUsers();
|
||||||
|
|
||||||
Assert.IsNotNull(users);
|
Assert.IsNotNull(users);
|
||||||
Assert.IsTrue(users.Any());
|
Assert.IsTrue(users.Count != 0);
|
||||||
Assert.IsTrue(users.All(x => !x.Email.IsNullOrEmpty() && !x.Deleted));
|
Assert.IsTrue(users.All(x => !x.Email.IsNullOrEmpty() && !x.Deleted));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -230,7 +230,7 @@ namespace FruitBankHybrid.Shared.Tests
|
||||||
var productDto = await _signalRClient.GetProductDtos();
|
var productDto = await _signalRClient.GetProductDtos();
|
||||||
|
|
||||||
Assert.IsNotNull(productDto);
|
Assert.IsNotNull(productDto);
|
||||||
Assert.IsTrue(productDto.Any());
|
Assert.IsTrue(productDto.Count != 0);
|
||||||
Assert.IsTrue(productDto.All(x => !x.Name.IsNullOrEmpty() && !x.Deleted));
|
Assert.IsTrue(productDto.All(x => !x.Name.IsNullOrEmpty() && !x.Deleted));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
using DevExpress.Blazor;
|
|
||||||
using AyCode.Core.Loggers;
|
using AyCode.Core.Loggers;
|
||||||
using AyCode.Services.Server.SignalRs;
|
|
||||||
using FruitBank.Common;
|
using FruitBank.Common;
|
||||||
using FruitBank.Common.Interfaces;
|
|
||||||
using FruitBank.Common.Loggers;
|
|
||||||
using FruitBank.Common.Server.Services.Loggers;
|
using FruitBank.Common.Server.Services.Loggers;
|
||||||
using FruitBank.Common.Server.Services.SignalRs;
|
using FruitBank.Common.Server.Services.SignalRs;
|
||||||
using FruitBankHybrid.Shared.Services;
|
using FruitBankHybrid.Shared.Services;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
|
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
|
||||||
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
|
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
|
||||||
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
|
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
|
||||||
<SelectedPlatformGroup>PhysicalDevice</SelectedPlatformGroup>
|
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
|
||||||
<DefaultDevice>pixel_7_-_api_35</DefaultDevice>
|
<DefaultDevice>pixel_7_-_api_35</DefaultDevice>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'">
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ public static class MauiProgram
|
||||||
|
|
||||||
// Add device-specific services used by the FruitBankHybrid.Shared project
|
// Add device-specific services used by the FruitBankHybrid.Shared project
|
||||||
builder.Services.AddSingleton<IFormFactor, FormFactor>();
|
builder.Services.AddSingleton<IFormFactor, FormFactor>();
|
||||||
builder.Services.AddScoped<ISignalRService, SignalRService>();
|
//builder.Services.AddScoped<ISignalRService, SignalRService>();
|
||||||
builder.Services.AddScoped<FruitBankSignalRClient>();
|
builder.Services.AddScoped<FruitBankSignalRClient>();
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
builder.Services.AddSingleton<IAcLogWriterClientBase, BrowserConsoleLogWriter>();
|
builder.Services.AddSingleton<IAcLogWriterClientBase, BrowserConsoleLogWriter>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue