//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2024-07-30 10:39:12 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using IRaCIS.Core.Domain.Share;
using Newtonsoft.Json;
namespace IRaCIS.Core.Application.ViewModel
{
    /// <summary> UserFeedBackView  列表视图模型 </summary>
    public class UserFeedBackView : UserFeedBackAddOrEdit
    {
        public string TrialCode { get; set; }

        public string ExperimentName { get; set; }

        public string SubjectCode { get; set; }

        public string TrialSiteCode { get; set; }

        public string SubjectVisitName { get; set; }


        public string FeedBackUserName { get; set; }

        public string FeedBackFullName { get; set; }


        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }

        public UserTypeEnum UserTypeEnum { get; set; }
    }

    public class SetUserFeedBackStateInDto
    {
        public Guid Id { get; set; }
        public int State { get; set; }


        /// <summary>
        /// 原因
        /// </summary>
        public string Reason { get; set; } = string.Empty;
    }


    public class GetUserFeedBackQuery
    {
        public Guid? Id { get; set; }

        public Guid? VisitTaskId { get; set; }
    }

    ///<summary>UserFeedBackQuery  列表查询参数模型</summary>
    public class UserFeedBackQuery : PageInput
    {

        public string? TrialKeyInfo { get; set; }

        public string? SubejctAndVisitKeyInfo { get; set; }

        public UserTypeEnum? UserTypeEnum { get; set; }

        public string? FeedBackUserKeyInfo { get; set; }

        public string? QuestionDescription { get; set; }

        public int? QuestionType { get; set; }

        public int? State { get; set; }

        public string? TrialSiteCode { get; set; }

        public DateTime? BeginCreatime { get; set; }

        public DateTime? EndCreatime { get; set; }

        public Guid? TrialId { get; set; }



    }

    ///<summary> UserFeedBackAddOrEdit  列表查询参数模型</summary>
    public class UserFeedBackAddOrEdit
    {
        public Guid? Id { get; set; }
        public Guid? SubjectId { get; set; }
        public Guid? SubjectVisitId { get; set; }
        public int QuestionType { get; set; }
        public string QuestionDescription { get; set; }

        public int State { get; set; }
        public Guid? TrialSiteId { get; set; }

        public Guid? TrialId { get; set; }

        public Guid? VisitTaskId { get; set; }

        /// <summary>
        /// 原因
        /// </summary>
        public string Reason { get; set; } = string.Empty;

        public List<string> ScreenshotList { get; set; }

        [JsonIgnore]
        public string ScreenshotListStr { get; set; } = string.Empty;
    }


    public class BatchUpdateCommand
    {
        public List<Guid> IdList { get; set; }

        public int State { get; set; }
    }

}


