Fix e migliorati caricamenti
This commit is contained in:
@@ -6,7 +6,7 @@ namespace salesbook.Shared.Core.Dto.Activity;
|
||||
|
||||
public class ActivityDTO : StbActivity
|
||||
{
|
||||
public string? Commessa { get; set; }
|
||||
public JtbComt? Commessa { get; set; }
|
||||
public string? Cliente { get; set; }
|
||||
public ActivityCategoryEnum Category { get; set; }
|
||||
public bool Complete { get; set; }
|
||||
|
||||
@@ -7,4 +7,10 @@ public class CRMTransferProspectResponseDTO
|
||||
{
|
||||
[JsonPropertyName("anagClie")]
|
||||
public AnagClie? AnagClie { get; set; }
|
||||
|
||||
[JsonPropertyName("vtbDest")]
|
||||
public List<VtbDest>? VtbDest { get; set; }
|
||||
|
||||
[JsonPropertyName("vtbCliePersRif")]
|
||||
public List<VtbCliePersRif>? VtbCliePersRif { get; set; }
|
||||
}
|
||||
@@ -6,6 +6,8 @@ public class UserListState
|
||||
{
|
||||
public List<UserDisplayItem>? GroupedUserList { get; set; }
|
||||
public List<UserDisplayItem>? FilteredGroupedUserList { get; set; }
|
||||
|
||||
public List<ContactDTO>? AllUsers { get; set; }
|
||||
|
||||
public bool IsLoaded { get; set; }
|
||||
public bool IsLoading { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ public interface IManageDataService
|
||||
|
||||
Task<List<AnagClie>> GetClienti(WhereCondContact? whereCond = null);
|
||||
Task<List<PtbPros>> GetProspect(WhereCondContact? whereCond = null);
|
||||
Task<List<ContactDTO>> GetContact(WhereCondContact whereCond);
|
||||
Task<List<ContactDTO>> GetContact(WhereCondContact whereCond, DateTime? lastSync = null);
|
||||
Task<ContactDTO?> GetSpecificContact(string codAnag, bool IsContact);
|
||||
|
||||
Task<List<ActivityDTO>> GetActivityTryLocalDb(WhereCondActivity whereCond);
|
||||
@@ -21,6 +21,7 @@ public interface IManageDataService
|
||||
Task InsertOrUpdate<T>(T objectToSave);
|
||||
Task InsertOrUpdate<T>(List<T> listToSave);
|
||||
|
||||
Task DeleteProspect(string codPpro);
|
||||
Task Delete<T>(T objectToDelete);
|
||||
Task DeleteActivity(ActivityDTO activity);
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ public class PreloadService(IManageDataService manageData, UserListState userSta
|
||||
|
||||
userState.GroupedUserList = BuildGroupedList(sorted);
|
||||
userState.FilteredGroupedUserList = userState.GroupedUserList;
|
||||
userState.AllUsers = users;
|
||||
|
||||
userState.NotifyUsersLoaded();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user