@model AccountManagement.Application.Contracts.Task.EditTask
@using System.Security.Claims
@using AccountManagement.Application.Contracts.Media
@{
string adminVersion = _0_Framework.Application.Version.AdminVersion;
MediaViewModel voice = null;
var userId = Convert.ToInt64(User.FindFirstValue("AccountId"));
string svgName = "unknow";
string[] fileExtensions = new string[]
{
".ai", ".avi", ".bmp", ".crd", ".csv", ".dll", ".doc", ".docx", ".dwg",
".eps", ".exe", ".flv", ".giff", ".html", ".iso", ".java", ".jpg", ".mdb",
".mid", ".mov", ".mp3", ".mp4", ".mpeg", ".pdf", ".png", ".ppt", ".ps",
".psd", ".pub", ".rar", ".raw", ".rss", ".svg", ".tiff", ".txt", ".wav",
".wma", ".xml", ".xsl", ".zip"
};
int i = 1;
if (Model.AssignViewModels?.Count > 1)
{
}
else
{
}
}
@{
var index = 0;
}
@if (Model.AssignViewModels?.Count > 0)
{
@foreach (var assign in Model.AssignViewModels!)
{
var btnClass = index == 0 ? "active" : "";
@assign.AssignedName
@assign.EndTaskDateFa
index++;
}
}
@if (!string.IsNullOrWhiteSpace(Model.EndTaskDate))
{
}
طرف حساب:
@Model.ContractingPartyName
عنوان وظیفه:
@Model.Title
تاریخ ایجاد:
@Model.CreateDateFa
تاریخ سررسید:
@Model.AssignViewModels?.First().EndTaskDateFa
@if (!String.IsNullOrWhiteSpace(Model.Description))
{
توضیحات :
@Html.Raw(Model.Description)
}
@if (Model.medias.Count > 0)
{
@foreach (var item in Model.medias)
{
if (item.Category == "صوت")
{
voice = item;
}
}
}
@if (Model.medias.Count > 0)
{
@foreach (var item in Model.medias)
{
if (item.Category == "فایل")
{
string fileName = System.IO.Path.GetFileName(item.Path);
string extension = System.IO.Path.GetExtension(fileName);
string nameWithoutExtension = fileName.Substring(0, fileName.LastIndexOf("."));
int maxLength = 20 - extension.Length;
int sliceLength = Math.Max((maxLength - 3) / 2, 0);
string start = nameWithoutExtension.Substring(0, Math.Min(sliceLength, nameWithoutExtension.Length));
string end = nameWithoutExtension.Substring(Math.Max(nameWithoutExtension.Length - sliceLength, 0));
var inBox = "inBox" + i;
@if (item.Path.EndsWith(".jpg") || item.Path.EndsWith(".jpeg") || item.Path.EndsWith(".png") || item.Path.EndsWith(".gif") || item.Path.EndsWith(".webp"))
{
}
else
{
if (fileExtensions.Contains(extension))
{
svgName = extension.TrimStart('.').ToLower();
.svg)
}
else
{

}
}
i++;
}
}
}
@* && Model.ReceiverId.All(x => x == userId) || userId == Model.SenderId *@
@if (!Model.IsDone && !Model.IsCancel)
{
@if (!Model.HasRequest)
{
@if (userId == Model.SenderId)
{
}
else
{
}
}
}
@if (Convert.ToInt64(User.FindFirstValue("AccountId")) == Model.SenderId)
{
}
else
{
}