...
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
@using Hushian.Application.Dtos
|
||||
@using Hushian.Application.Dtos.Company
|
||||
@using Common.Dtos.Company
|
||||
@using Common.Dtos.Conversation
|
||||
@using Common.Dtos.Group
|
||||
@using HushianWebApp.Components.UserPanel
|
||||
@using HushianWebApp.Service
|
||||
@using HushianWebApp.Services
|
||||
@@ -60,7 +61,7 @@
|
||||
}
|
||||
|
||||
</div>
|
||||
@if (IsLogin && (Conversations.Count == 0 && SelectedConversation == null) || (Conversations.Count > 0 && SelectedConversation != null && SelectedConversation.status == Hushian.Enums.ConversationStatus.InProgress))
|
||||
@if (IsLogin && (Conversations.Count == 0 && SelectedConversation == null) || (Conversations.Count > 0 && SelectedConversation != null && SelectedConversation.status == Common.Enums.ConversationStatus.InProgress))
|
||||
{
|
||||
<div class="card-header text-white d-flex justify-content-between align-items-center">
|
||||
<input type="text" class="form-control" @bind-value="InputMessage" placeholder="پیام خود را بنویسید..." style="margin-left:10px" />
|
||||
@@ -91,13 +92,13 @@
|
||||
[Parameter] public int? ConversationID { get; set; }
|
||||
#endregion
|
||||
#region Fild
|
||||
public ConversationDto? SelectedConversation { get; set; } = null;
|
||||
public List<ConversationDto> Conversations { get; set; } = new();
|
||||
public List<ConversationItemDto>? SelectedConversationItems { get; set; } = null;
|
||||
public Read_ConversationDto? SelectedConversation { get; set; } = null;
|
||||
public List<Read_ConversationDto> Conversations { get; set; } = new();
|
||||
public List<Read_ConversationResponseDto>? SelectedConversationItems { get; set; } = null;
|
||||
public RenderFragment GCContent { get; set; }
|
||||
public RenderFragment ConversationsContent { get; set; }
|
||||
List<GroupDto> groups = new List<GroupDto>();
|
||||
public CompanyDto company { get; set; } = new();
|
||||
List<Read_GroupDto> groups = new List<Read_GroupDto>();
|
||||
public ReadANDUpdate_CompanyDto company { get; set; } = new();
|
||||
int CountQueueCompany = 0;
|
||||
public string CompanyName { get; set; } = "هوشیان";
|
||||
public bool IsLogin { get; set; } = false;
|
||||
@@ -167,7 +168,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
CompanyName = _company.Fullname;
|
||||
CompanyName = _company.FullName;
|
||||
company = _company;
|
||||
|
||||
var _groups = await groupService.GetGroupsCompany(CompanyID);
|
||||
@@ -220,15 +221,15 @@
|
||||
Sending = true;
|
||||
if (SelectedConversation != null)
|
||||
{
|
||||
var item = new ADDConversationItemDto()
|
||||
var item = new ADD_ConversationResponseDto()
|
||||
{
|
||||
ConversationID = SelectedConversation.ID,
|
||||
text = InputMessage
|
||||
Text = InputMessage
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
var Item = new ADDConversationDto()
|
||||
var Item = new ADD_ConversationDto()
|
||||
{
|
||||
CompanyID = CompanyID,
|
||||
GroupID = SelectedGroup,
|
||||
|
Reference in New Issue
Block a user