using AntDesign;
using Microsoft.AspNetCore.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using wispro.sp.web.Services;

namespace wispro.sp.web.Pages.AppCase
{
    public partial class ShensuReview
    {
        [Parameter]
        public int Id { get; set; }

        private string Memo;

        [Inject]
        private TaskService taskService { get; set; }

        private Models.Task _task;

        List<UploadFileItem> fileList = new List<UploadFileItem>
            {
                new UploadFileItem
                {
                    Id = "1",
                    FileName = "客户往来邮件1.jpg",
                    Url = "#",
                    State = UploadState.Success
                },
                new UploadFileItem
                {
                    Id = "2",
                    FileName = "与客户微信聊天图片.jpg",
                    Url = "#",
                    State = UploadState.Success
                },
                new UploadFileItem
                {
                    Id = "3",
                    FileName = "附件.docx",
                    Url = "#",
                    State = UploadState.Success
                }
            };


        protected override void OnParametersSet()
        {
            base.OnParametersSet();
            _task = taskService.GetTask(Id);
        }

    }
}
