First Initial
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
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(1000)]
|
||||
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; }
|
||||
|
||||
[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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user