Files
hrm_eva/Models/eva_evaluation_achievement/eva_evaluation_achievementEntity.cs

69 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using TTSW.EF;
using TTSW.Utils;
using TTSW.Constant;
using TTSW.Common;
using System.IO;
namespace TodoAPI2.Models
{
public class eva_evaluation_achievementEntity : BaseEntity2<int>
{
[ForeignKey("create_evaluation_detail_id")]
public eva_create_evaluation_detailEntity eva_create_evaluation_detail { get; set; }
public int? create_evaluation_detail_id { get; set; }
[MaxLength(16000)]
public string achievement { get; set; }
public decimal? weight { get; set; }
[MaxLength(1000)]
public string thefile { get; set; }
[NotMapped]
public string thefileDisplay
{
get
{
return (string.IsNullOrEmpty(thefile) ? "" :
FileUtil.GetFileInfo(TTSW.Constant.FilePathConstant.DirType.FilesTestUpload, id, thefile).RelativePath).Replace(@"\", "/");
}
}
public decimal? score { get; set; }
public decimal? sumary { get; set; }
public decimal? score2 { get; set; }
public decimal? sumary2 { get; set; }
public decimal? score3 { get; set; }
public decimal? sumary3 { get; set; }
public decimal? score4 { get; set; }
public decimal? sumary4 { get; set; }
[MaxLength(255)]
public string target_score1 { get; set; }
[MaxLength(255)]
public string target_score2 { get; set; }
[MaxLength(255)]
public string target_score3 { get; set; }
[MaxLength(255)]
public string target_score4 { get; set; }
[MaxLength(255)]
public string target_score5 { get; set; }
[MaxLength(16000)]
public string achievement_line1 { get; set; }
}
}