เตรียม UI รายงานแบบประเมิน
This commit is contained in:
18
Models/rep_eva_x/Irep_eva_xService.cs
Normal file
18
Models/rep_eva_x/Irep_eva_xService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using TTSW.EF;
|
||||
using TTSW.Utils;
|
||||
using TTSW.Constant;
|
||||
using TTSW.Common;
|
||||
using TodoAPI2.Models;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public interface Irep_eva_xService
|
||||
{
|
||||
rep_eva_xWithSelectionViewModel GetBlankItem();
|
||||
}
|
||||
}
|
||||
|
||||
24
Models/rep_eva_x/rep_eva_xInputModel.cs
Normal file
24
Models/rep_eva_x/rep_eva_xInputModel.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public class rep_eva_xInputModel
|
||||
{
|
||||
|
||||
public Guid? id { get; set; }
|
||||
|
||||
public string detail_id { get; set; }
|
||||
|
||||
public string active_mode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
61
Models/rep_eva_x/rep_eva_xInputModel2.cs
Normal file
61
Models/rep_eva_x/rep_eva_xInputModel2.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
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;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public class rep_eva_xInputModel2
|
||||
{
|
||||
public int? create_evaluation_detail_id { get; set; }
|
||||
|
||||
public string employee_fullname { get; set; }
|
||||
public string employee_code { get; set; }
|
||||
public string employee_position_type { get; set; }
|
||||
public string employee_position_level { get; set; }
|
||||
public string employee_org { get; set; }
|
||||
public string employee_position { get; set; }
|
||||
public string image_url { get; set; }
|
||||
public string chief_fullname { get; set; }
|
||||
public string chief_position { get; set; }
|
||||
public string supervisor2_fullname { get; set; }
|
||||
public string supervisor2_position { get; set; }
|
||||
public string supervisor1A_fullname { get; set; }
|
||||
public string supervisor1A_position { get; set; }
|
||||
public string supervisor2A_fullname { get; set; }
|
||||
public string supervisor2A_position { get; set; }
|
||||
public string leave_period { get; set; }
|
||||
public string main_dept { get; set; }
|
||||
public int? selected_round { get; set; }
|
||||
public string round1_text { get; set; }
|
||||
public string round2_text { get; set; }
|
||||
public decimal? total_summary_supervisor2A { get; set; }
|
||||
public decimal? Final_summary_supervisor2A { get; set; }
|
||||
public decimal? total_summary_competency_supervisor2A { get; set; }
|
||||
public decimal? Final_summary_competency_supervisor2A { get; set; }
|
||||
public decimal? achievement_supervisor2A { get; set; }
|
||||
public decimal? competency_supervisor2A { get; set; }
|
||||
public decimal? score_supervisor2A { get; set; }
|
||||
public string level_score_supervisor2A { get; set; }
|
||||
public decimal? w1 { get; set; }
|
||||
public decimal? w2 { get; set; }
|
||||
|
||||
public decimal? sum_day_sick_leave { get; set; }
|
||||
public decimal? count_sick_leave { get; set; }
|
||||
public decimal? sum_day_personal_leave { get; set; }
|
||||
public decimal? count_personal_leave { get; set; }
|
||||
public decimal? sum_day_vacation_leave { get; set; }
|
||||
public decimal? count_stop_working { get; set; }
|
||||
public decimal? count_late_tad_processing_time_results { get; set; }
|
||||
public decimal? count_absence_tad_processing_time_results { get; set; }
|
||||
public decimal? sum_day_sick_personal_leave { get; set; }
|
||||
public decimal? count_sick_personal_leave { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
21
Models/rep_eva_x/rep_eva_xReportRequestModel.cs
Normal file
21
Models/rep_eva_x/rep_eva_xReportRequestModel.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public class rep_eva_xReportRequestModel : rep_eva_xSearchModel
|
||||
{
|
||||
public string filetype { get; set; }
|
||||
|
||||
public string contentType { get { return MyHelper.GetContentType(filetype); } }
|
||||
}
|
||||
}
|
||||
|
||||
23
Models/rep_eva_x/rep_eva_xSearchModel.cs
Normal file
23
Models/rep_eva_x/rep_eva_xSearchModel.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public class rep_eva_xSearchModel
|
||||
{
|
||||
|
||||
public Guid id { get; set; }
|
||||
|
||||
public string detail_id { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
42
Models/rep_eva_x/rep_eva_xService.cs
Normal file
42
Models/rep_eva_x/rep_eva_xService.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using AutoMapper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using TTSW.EF;
|
||||
using TTSW.Utils;
|
||||
using TTSW.Constant;
|
||||
using TTSW.Common;
|
||||
using TodoAPI2.Models;
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
using System.Net;
|
||||
using TTSW.Configure;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System.Data;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public class rep_eva_xService : Irep_eva_xService
|
||||
{
|
||||
private IBaseRepository<eva_level_scoreEntity, Guid> _repository;
|
||||
private IMyDatabase db;
|
||||
private Iexternal_linkageService ext;
|
||||
|
||||
public rep_eva_xService(IBaseRepository<eva_level_scoreEntity, Guid> repository, IMyDatabase mydb, Iexternal_linkageService inext)
|
||||
{
|
||||
_repository = repository;
|
||||
db = mydb;
|
||||
ext = inext;
|
||||
}
|
||||
|
||||
public rep_eva_xWithSelectionViewModel GetBlankItem()
|
||||
{
|
||||
var i = new rep_eva_xWithSelectionViewModel();
|
||||
|
||||
|
||||
return i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
21
Models/rep_eva_x/rep_eva_xViewModel.cs
Normal file
21
Models/rep_eva_x/rep_eva_xViewModel.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public class rep_eva_xViewModel : BaseViewModel2<Guid>
|
||||
{
|
||||
|
||||
public string detail_id { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
12
Models/rep_eva_x/rep_eva_xWithSelectionViewModel.cs
Normal file
12
Models/rep_eva_x/rep_eva_xWithSelectionViewModel.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public class rep_eva_xWithSelectionViewModel: rep_eva_xViewModel
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user