diff --git a/EXCEL/eva_create_evaluation_detail@eva_create_evaluation_detail_review0A.xlsx b/EXCEL/eva_create_evaluation_detail@eva_create_evaluation_detail_review0A.xlsx
index d5a0feb..c483dd8 100644
Binary files a/EXCEL/eva_create_evaluation_detail@eva_create_evaluation_detail_review0A.xlsx and b/EXCEL/eva_create_evaluation_detail@eva_create_evaluation_detail_review0A.xlsx differ
diff --git a/Migrations/25640213052452_AddRejectReason.Designer.cs b/Migrations/25640213052452_AddRejectReason.Designer.cs
new file mode 100644
index 0000000..f8129d0
--- /dev/null
+++ b/Migrations/25640213052452_AddRejectReason.Designer.cs
@@ -0,0 +1,777 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
+using TTSW.EF;
+
+namespace tb320eva.Migrations
+{
+ [DbContext(typeof(DataContext))]
+ [Migration("25640213052452_AddRejectReason")]
+ partial class AddRejectReason
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn)
+ .HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
+ .HasAnnotation("Relational:MaxIdentifierLength", 63);
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_adjust_postponementEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("command_no")
+ .HasMaxLength(4000);
+
+ b.Property("create_evaluation_id");
+
+ b.Property("created");
+
+ b.Property("fiscal_year");
+
+ b.Property("imported_date");
+
+ b.Property("imported_file")
+ .HasMaxLength(1000);
+
+ b.Property("isActive");
+
+ b.Property("limit");
+
+ b.Property("limit_frame");
+
+ b.Property("limit_frame_quota");
+
+ b.Property("limit_quota");
+
+ b.Property("managed_by");
+
+ b.Property("percentage");
+
+ b.Property("report_type")
+ .HasMaxLength(1000);
+
+ b.Property("theDate");
+
+ b.Property("theRound");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.HasIndex("create_evaluation_id");
+
+ b.ToTable("eva_adjust_postponement");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_adjust_postponement_detailEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("adjust_postponement_id");
+
+ b.Property("adjust_postponement_quota_id");
+
+ b.Property("cost_living");
+
+ b.Property("created");
+
+ b.Property("employee_id");
+
+ b.Property("isActive");
+
+ b.Property("level_this_time")
+ .HasMaxLength(1000);
+
+ b.Property("middle");
+
+ b.Property("migration_eva_result")
+ .HasMaxLength(1000);
+
+ b.Property("migration_total_score");
+
+ b.Property("new_cost_living");
+
+ b.Property("new_sarary");
+
+ b.Property("new_sarary_with_quota");
+
+ b.Property("order_at_this_time");
+
+ b.Property("org_at_this_time");
+
+ b.Property("other_money_at_this_time");
+
+ b.Property("position_allowance_at_this_time");
+
+ b.Property("position_this_time")
+ .HasMaxLength(1000);
+
+ b.Property("promoted_percentage");
+
+ b.Property("receive_quota");
+
+ b.Property("remark")
+ .HasMaxLength(1000);
+
+ b.Property("sarary");
+
+ b.Property("total_promote");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.HasIndex("adjust_postponement_id");
+
+ b.HasIndex("adjust_postponement_quota_id");
+
+ b.ToTable("eva_adjust_postponement_detail");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_create_evaluationEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("created");
+
+ b.Property("employee_id");
+
+ b.Property("evaluation_group_id");
+
+ b.Property("isActive");
+
+ b.Property("performance_plan_id");
+
+ b.Property("score1");
+
+ b.Property("score2");
+
+ b.Property("supervisor1_id");
+
+ b.Property("supervisor2_id");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.HasIndex("evaluation_group_id");
+
+ b.HasIndex("performance_plan_id");
+
+ b.ToTable("eva_create_evaluation");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_create_evaluation_detailEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("Final_summary_chief");
+
+ b.Property("Final_summary_competency_chief");
+
+ b.Property("Final_summary_competency_supervisor");
+
+ b.Property("Final_summary_competency_supervisor1A");
+
+ b.Property("Final_summary_competency_supervisor2A");
+
+ b.Property("Final_summary_supervisor");
+
+ b.Property("Final_summary_supervisor1A");
+
+ b.Property("Final_summary_supervisor2A");
+
+ b.Property("achievement_chief");
+
+ b.Property("achievement_supervisor");
+
+ b.Property("achievement_supervisor1A");
+
+ b.Property("achievement_supervisor2A");
+
+ b.Property("chief");
+
+ b.Property("chief_a");
+
+ b.Property("chief_a_date");
+
+ b.Property("chief_a_reject_reason")
+ .HasMaxLength(1000);
+
+ b.Property("chief_a_remark")
+ .HasMaxLength(1000);
+
+ b.Property("chief_a_result")
+ .HasMaxLength(1);
+
+ b.Property("competency_chief");
+
+ b.Property("competency_supervisor");
+
+ b.Property("competency_supervisor1A");
+
+ b.Property("competency_supervisor2A");
+
+ b.Property("create_evaluation_id");
+
+ b.Property("created");
+
+ b.Property("employee_id");
+
+ b.Property("isActive");
+
+ b.Property("level_score_chief")
+ .HasMaxLength(255);
+
+ b.Property("level_score_supervisor")
+ .HasMaxLength(255);
+
+ b.Property("level_score_supervisor1A")
+ .HasMaxLength(255);
+
+ b.Property("level_score_supervisor2A")
+ .HasMaxLength(255);
+
+ b.Property("score_chief");
+
+ b.Property("score_supervisor");
+
+ b.Property("score_supervisor1A");
+
+ b.Property("score_supervisor2A");
+
+ b.Property("status_chief")
+ .HasMaxLength(1);
+
+ b.Property("status_chief_a")
+ .HasMaxLength(1);
+
+ b.Property("status_chief_a_click_date");
+
+ b.Property("status_chief_click_date");
+
+ b.Property("status_self")
+ .HasMaxLength(1);
+
+ b.Property("status_self_a")
+ .HasMaxLength(1);
+
+ b.Property("status_self_a_click_date");
+
+ b.Property("status_self_click_date");
+
+ b.Property("status_supervisor")
+ .HasMaxLength(1);
+
+ b.Property("status_supervisor1A")
+ .HasMaxLength(1);
+
+ b.Property("status_supervisor1A_click_date");
+
+ b.Property("status_supervisor2A")
+ .HasMaxLength(1);
+
+ b.Property("status_supervisor2A_click_date");
+
+ b.Property("status_supervisor_click_date");
+
+ b.Property("supervisor1");
+
+ b.Property("supervisor1A");
+
+ b.Property("supervisor1A_date");
+
+ b.Property("supervisor1A_remark")
+ .HasMaxLength(1000);
+
+ b.Property("supervisor1A_result")
+ .HasMaxLength(1);
+
+ b.Property("supervisor1_date");
+
+ b.Property("supervisor1_remark")
+ .HasMaxLength(1000);
+
+ b.Property("supervisor1_result")
+ .HasMaxLength(1);
+
+ b.Property("supervisor2");
+
+ b.Property("supervisor2A");
+
+ b.Property("supervisor2A_date");
+
+ b.Property("supervisor2A_remark")
+ .HasMaxLength(1000);
+
+ b.Property("supervisor2A_result")
+ .HasMaxLength(1);
+
+ b.Property("supervisor2_date");
+
+ b.Property("supervisor2_remark")
+ .HasMaxLength(1000);
+
+ b.Property("supervisor2_result")
+ .HasMaxLength(1);
+
+ b.Property("total_summary_chief");
+
+ b.Property("total_summary_competency_chief");
+
+ b.Property("total_summary_competency_supervisor");
+
+ b.Property("total_summary_competency_supervisor1A");
+
+ b.Property("total_summary_competency_supervisor2A");
+
+ b.Property("total_summary_supervisor");
+
+ b.Property("total_summary_supervisor1A");
+
+ b.Property("total_summary_supervisor2A");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.ToTable("eva_create_evaluation_detail");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_achievementEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("achievement")
+ .HasMaxLength(1000);
+
+ b.Property("create_evaluation_detail_id");
+
+ b.Property("created");
+
+ b.Property("isActive");
+
+ b.Property("score");
+
+ b.Property("score2");
+
+ b.Property("score3");
+
+ b.Property("score4");
+
+ b.Property("sumary");
+
+ b.Property("sumary2");
+
+ b.Property("sumary3");
+
+ b.Property("sumary4");
+
+ b.Property("target_score1")
+ .HasMaxLength(255);
+
+ b.Property("target_score2")
+ .HasMaxLength(255);
+
+ b.Property("target_score3")
+ .HasMaxLength(255);
+
+ b.Property("target_score4")
+ .HasMaxLength(255);
+
+ b.Property("target_score5")
+ .HasMaxLength(255);
+
+ b.Property("thefile")
+ .HasMaxLength(1000);
+
+ b.Property("updated");
+
+ b.Property("weight");
+
+ b.HasKey("id");
+
+ b.HasIndex("create_evaluation_detail_id");
+
+ b.ToTable("eva_evaluation_achievement");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_behaviorEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("behavior")
+ .HasMaxLength(1000);
+
+ b.Property("create_evaluation_detail_id");
+
+ b.Property("created");
+
+ b.Property("isActive");
+
+ b.Property("score");
+
+ b.Property("score2");
+
+ b.Property("score3");
+
+ b.Property("score4");
+
+ b.Property("sumary");
+
+ b.Property("sumary2");
+
+ b.Property("sumary3");
+
+ b.Property("sumary4");
+
+ b.Property("target_score1")
+ .HasMaxLength(255);
+
+ b.Property("target_score2")
+ .HasMaxLength(255);
+
+ b.Property("target_score3")
+ .HasMaxLength(255);
+
+ b.Property("target_score4")
+ .HasMaxLength(255);
+
+ b.Property("target_score5")
+ .HasMaxLength(255);
+
+ b.Property("updated");
+
+ b.Property("weight");
+
+ b.HasKey("id");
+
+ b.HasIndex("create_evaluation_detail_id");
+
+ b.ToTable("eva_evaluation_behavior");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_groupEntity", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd();
+
+ b.Property("code")
+ .HasMaxLength(255);
+
+ b.Property("created");
+
+ b.Property("isActive");
+
+ b.Property("thegroup")
+ .HasMaxLength(255);
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.ToTable("eva_evaluation_group");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_group_detailEntity", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd();
+
+ b.Property("created");
+
+ b.Property("employee_id");
+
+ b.Property("evaluation_group_id");
+
+ b.Property("isActive");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.HasIndex("evaluation_group_id");
+
+ b.ToTable("eva_evaluation_group_detail");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_operating_agreementEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("create_evaluation_detail_id");
+
+ b.Property("created");
+
+ b.Property("indicators")
+ .HasMaxLength(4000);
+
+ b.Property("isActive");
+
+ b.Property("mission_detail")
+ .HasMaxLength(4000);
+
+ b.Property("mission_no");
+
+ b.Property("target")
+ .HasMaxLength(4000);
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.HasIndex("create_evaluation_detail_id");
+
+ b.ToTable("eva_evaluation_operating_agreement");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_idp_planEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("create_evaluation_detail_id");
+
+ b.Property("created");
+
+ b.Property("develop")
+ .HasMaxLength(1000);
+
+ b.Property("development_method")
+ .HasMaxLength(1000);
+
+ b.Property("end_date");
+
+ b.Property("isActive");
+
+ b.Property("period_text")
+ .HasMaxLength(1000);
+
+ b.Property("start_date");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.ToTable("eva_idp_plan");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_level_scoreEntity", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd();
+
+ b.Property("code")
+ .HasMaxLength(255);
+
+ b.Property("created");
+
+ b.Property("detail")
+ .HasMaxLength(1000);
+
+ b.Property("isActive");
+
+ b.Property("max_score");
+
+ b.Property("min_score");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.ToTable("eva_level_score");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_performance_planEntity", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd();
+
+ b.Property("created");
+
+ b.Property("fiscal_year");
+
+ b.Property("isActive");
+
+ b.Property("theTime");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.ToTable("eva_performance_plan");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_performance_plan_detailEntity", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd();
+
+ b.Property("created");
+
+ b.Property("end_date");
+
+ b.Property("isActive");
+
+ b.Property("list_no");
+
+ b.Property("performance_plan_id");
+
+ b.Property("remark")
+ .HasMaxLength(1000);
+
+ b.Property("start_date");
+
+ b.Property("step")
+ .HasMaxLength(1000);
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.HasIndex("performance_plan_id");
+
+ b.ToTable("eva_performance_plan_detail");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_promoted_percentageEntity", b =>
+ {
+ b.Property("id")
+ .ValueGeneratedOnAdd();
+
+ b.Property("code")
+ .HasMaxLength(255);
+
+ b.Property("created");
+
+ b.Property("detail")
+ .HasMaxLength(1000);
+
+ b.Property("isActive");
+
+ b.Property("level_score_id");
+
+ b.Property("max_score");
+
+ b.Property("min_score");
+
+ b.Property("promoted_percentage");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.HasIndex("level_score_id");
+
+ b.ToTable("eva_promoted_percentage");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_salary_cylinderEntity", b =>
+ {
+ b.Property("id");
+
+ b.Property("cost_living");
+
+ b.Property("created");
+
+ b.Property("isActive");
+
+ b.Property("middle");
+
+ b.Property("position_level");
+
+ b.Property("position_type");
+
+ b.Property("temporary_min");
+
+ b.Property("themax");
+
+ b.Property("themin");
+
+ b.Property("updated");
+
+ b.HasKey("id");
+
+ b.ToTable("eva_salary_cylinder");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_adjust_postponementEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_create_evaluationEntity", "eva_create_evaluation")
+ .WithMany()
+ .HasForeignKey("create_evaluation_id");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_adjust_postponement_detailEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_adjust_postponementEntity", "eva_adjust_postponement")
+ .WithMany()
+ .HasForeignKey("adjust_postponement_id");
+
+ b.HasOne("TodoAPI2.Models.eva_adjust_postponementEntity", "eva_adjust_postponement_quota")
+ .WithMany()
+ .HasForeignKey("adjust_postponement_quota_id")
+ .HasConstraintName("FK_eva_adjust_postponement_detail_eva_adjust_postponement_adj~1");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_create_evaluationEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_evaluation_groupEntity", "eva_evaluation_group")
+ .WithMany()
+ .HasForeignKey("evaluation_group_id");
+
+ b.HasOne("TodoAPI2.Models.eva_performance_planEntity", "eva_performance_plan")
+ .WithMany()
+ .HasForeignKey("performance_plan_id");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_achievementEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_create_evaluation_detailEntity", "eva_create_evaluation_detail")
+ .WithMany()
+ .HasForeignKey("create_evaluation_detail_id");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_behaviorEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_create_evaluation_detailEntity", "eva_create_evaluation_detail")
+ .WithMany()
+ .HasForeignKey("create_evaluation_detail_id");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_group_detailEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_evaluation_groupEntity", "eva_evaluation_group")
+ .WithMany()
+ .HasForeignKey("evaluation_group_id");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_operating_agreementEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_create_evaluation_detailEntity", "eva_create_evaluation_detail_create_evaluation_detail_id")
+ .WithMany()
+ .HasForeignKey("create_evaluation_detail_id");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_performance_plan_detailEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_performance_planEntity", "eva_performance_plan")
+ .WithMany()
+ .HasForeignKey("performance_plan_id");
+ });
+
+ modelBuilder.Entity("TodoAPI2.Models.eva_promoted_percentageEntity", b =>
+ {
+ b.HasOne("TodoAPI2.Models.eva_level_scoreEntity", "eva_level_score")
+ .WithMany()
+ .HasForeignKey("level_score_id");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/Migrations/25640213052452_AddRejectReason.cs b/Migrations/25640213052452_AddRejectReason.cs
new file mode 100644
index 0000000..6a36531
--- /dev/null
+++ b/Migrations/25640213052452_AddRejectReason.cs
@@ -0,0 +1,23 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+namespace tb320eva.Migrations
+{
+ public partial class AddRejectReason : Migration
+ {
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AddColumn(
+ name: "chief_a_reject_reason",
+ table: "eva_create_evaluation_detail",
+ maxLength: 1000,
+ nullable: true);
+ }
+
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropColumn(
+ name: "chief_a_reject_reason",
+ table: "eva_create_evaluation_detail");
+ }
+ }
+}
diff --git a/Migrations/DataContextModelSnapshot.cs b/Migrations/DataContextModelSnapshot.cs
index 5ef6e4c..df8faaa 100644
--- a/Migrations/DataContextModelSnapshot.cs
+++ b/Migrations/DataContextModelSnapshot.cs
@@ -199,6 +199,9 @@ namespace tb320eva.Migrations
b.Property("chief_a_date");
+ b.Property("chief_a_reject_reason")
+ .HasMaxLength(1000);
+
b.Property("chief_a_remark")
.HasMaxLength(1000);
diff --git a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailEntity.cs b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailEntity.cs
index 434cff7..e61ac89 100644
--- a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailEntity.cs
+++ b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailEntity.cs
@@ -174,6 +174,9 @@ namespace TodoAPI2.Models
public string chief_a_remark { get; set; }
public DateTime? chief_a_date { get; set; }
+
+ [MaxLength(1000)]
+ public string chief_a_reject_reason { get; set; }
}
}
diff --git a/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocService.cs b/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocService.cs
index 78a8f75..68d4194 100644
--- a/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocService.cs
+++ b/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocService.cs
@@ -248,7 +248,7 @@ namespace TodoAPI2.Models
&& (fk_external_employee.department_id == model.org_id || !model.org_id.HasValue)
&& (fk_external_employee.employee_no == model.search_employee_code || string.IsNullOrEmpty(model.search_employee_code))
&& (fk_external_employee.fullname.Contains(model.search_employee_fullname) || string.IsNullOrEmpty(model.search_employee_fullname))
- && m_eva_create_evaluation_detail_agreement.employee_id == emp_id
+ && (m_eva_create_evaluation_detail_agreement.employee_id == emp_id || m_eva_create_evaluation_detail_agreement.chief == emp_id)
orderby m_eva_create_evaluation_detail_agreement.created descending
select new eva_create_evaluation_detail_firstdocViewModel()
diff --git a/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocViewModel.cs b/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocViewModel.cs
index a7be033..e64f18f 100644
--- a/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocViewModel.cs
+++ b/Models/eva_create_evaluation_detail_firstdoc/eva_create_evaluation_detail_firstdocViewModel.cs
@@ -68,11 +68,11 @@ namespace TodoAPI2.Models
public decimal? score2 { get; set; }
- public string txt_status_self_a { get { return getStatusText(status_self_a) + MyHelper.GetDateStringForReport(status_self_a_click_date); } }
+ public string txt_status_self_a { get { return getStatusText2(status_self_a) + MyHelper.GetDateStringForReport(status_self_a_click_date); } }
public string txt_status_self { get { return getStatusText(status_self) + MyHelper.GetDateStringForReport(status_self_click_date); } }
- public string txt_status_chief_a { get { return getStatusText(status_chief_a) + MyHelper.GetDateStringForReport(status_chief_a_click_date); } }
+ public string txt_status_chief_a { get { return getStatusText2(status_chief_a) + MyHelper.GetDateStringForReport(status_chief_a_click_date); } }
public string txt_status_chief { get { return getStatusText(status_chief) + MyHelper.GetDateStringForReport(status_chief_click_date); } }
public string txt_status_supervisor { get { return getStatusText(status_supervisor) + MyHelper.GetDateStringForReport(status_supervisor_click_date); } }
@@ -97,6 +97,22 @@ namespace TodoAPI2.Models
return " ";
}
+ private string getStatusText2(string s)
+ {
+ if (!string.IsNullOrEmpty(s))
+ {
+ if (s == "Y")
+ {
+ return "ส่งข้อตกลงแล้ว
";
+ }
+ else if (s == "N")
+ {
+ return "ตีกลับ
";
+ }
+ }
+ return " ";
+ }
+
}
}
diff --git a/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AInputModel.cs b/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AInputModel.cs
index 492abc3..4fe98ce 100644
--- a/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AInputModel.cs
+++ b/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AInputModel.cs
@@ -26,6 +26,8 @@ namespace TodoAPI2.Models
public DateTime? chief_a_date { get; set; }
+ public string chief_a_reject_reason { get; set; }
+
public string active_mode { get; set; }
}
}
diff --git a/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AService.cs b/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AService.cs
index f7d421a..a0ac579 100644
--- a/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AService.cs
+++ b/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AService.cs
@@ -121,6 +121,7 @@ namespace TodoAPI2.Models
chief_a_result = m_eva_create_evaluation_detail_review0A.chief_a_result,
chief_a_remark = m_eva_create_evaluation_detail_review0A.chief_a_remark,
chief_a_date = m_eva_create_evaluation_detail_review0A.chief_a_date,
+ chief_a_reject_reason = m_eva_create_evaluation_detail_review0A.chief_a_reject_reason,
chief_a_result_external_linkage_external_name = fk_external_linkageResult3.external_name,
@@ -196,6 +197,7 @@ namespace TodoAPI2.Models
existingEntity.chief_a_result = model.chief_a_result;
existingEntity.chief_a_remark = model.chief_a_remark;
existingEntity.chief_a_date = model.chief_a_date;
+ existingEntity.chief_a_reject_reason = model.chief_a_reject_reason;
//existingEntity.SetAutoField(_repository.Context);
@@ -230,6 +232,7 @@ namespace TodoAPI2.Models
existingEntity.chief_a_result = i.chief_a_result;
existingEntity.chief_a_remark = i.chief_a_remark;
existingEntity.chief_a_date = i.chief_a_date;
+ existingEntity.chief_a_reject_reason = i.chief_a_reject_reason;
//existingEntity.SetAutoField(_repository.Context);
_repository.UpdateWithoutCommit(i.id.Value, existingEntity);
@@ -301,6 +304,7 @@ namespace TodoAPI2.Models
i.Add("chief_a_remark", "ความเห็นผู้ประเมินสูงสุด");
i.Add("chief_a_date", "วันที่ประเมิน");
i.Add("txt_chief_a_date", "วันที่ประเมิน");
+ i.Add("chief_a_reject_reason", "เหตุผลการส่งคืนเอกสาร");
return i;
}
diff --git a/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AViewModel.cs b/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AViewModel.cs
index 3f3ff64..306b702 100644
--- a/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AViewModel.cs
+++ b/Models/eva_create_evaluation_detail_review0A/eva_create_evaluation_detail_review0AViewModel.cs
@@ -26,6 +26,8 @@ namespace TodoAPI2.Models
public string txt_chief_a_date { get { return MyHelper.GetDateStringForReport(this.chief_a_date); } }
+ public string chief_a_reject_reason { get; set; }
+
public string chief_a_result_external_linkage_external_name { get; set; }
}
diff --git a/Models/external_linkage/external_linkageService.cs b/Models/external_linkage/external_linkageService.cs
index fab603b..a9a2d94 100644
--- a/Models/external_linkage/external_linkageService.cs
+++ b/Models/external_linkage/external_linkageService.cs
@@ -272,13 +272,13 @@ namespace TodoAPI2.Models
var i = new external_linkageViewModel();
i.external_id = 1;
i.external_code = "Y";
- i.external_name = "เห็นด้วยกับข้อตกลงการประเมิน";
+ i.external_name = "เห็นชอบ";
result.Add(i);
var j = new external_linkageViewModel();
j.external_id = 2;
j.external_code = "N";
- j.external_name = "ไม่เห็นด้วยและมีความเห็นต่าง";
+ j.external_name = "ความเห็นอื่นๆ";
result.Add(j);
return result;
diff --git a/Views/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d.cshtml b/Views/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d.cshtml
index dad0ae6..422d0d9 100644
--- a/Views/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d.cshtml
+++ b/Views/eva_create_evaluation_detail_firstdocView/eva_create_evaluation_detail_firstdoc_d.cshtml
@@ -163,15 +163,16 @@