From 60373ede6bba4dbdcef6ecd9919b07ec4c855a74 Mon Sep 17 00:00:00 2001 From: Nakorn Rientrakrunchai Date: Fri, 12 Mar 2021 23:22:39 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B8=E0=B8=87=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=88=E0=B8=81=20eva=20detail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EXCEL/eva_create_evaluation_detail.xlsx | Bin 13011 -> 13253 bytes EXCEL/eva_limit_frame_employee.xlsx | Bin 10844 -> 10826 bytes ...25640312143303_UpdateEvaDetail.Designer.cs | 936 +++++++++++++++++ Migrations/25640312143303_UpdateEvaDetail.cs | 40 + ...640312145857_UpdateEvaDetail02.Designer.cs | 947 +++++++++++++++++ .../25640312145857_UpdateEvaDetail02.cs | 43 + ...640312161519_UpdateEvaDetail03.Designer.cs | 951 ++++++++++++++++++ .../25640312161519_UpdateEvaDetail03.cs | 31 + Migrations/DataContextModelSnapshot.cs | 21 + .../eva_create_evaluationService.cs | 2 +- .../eva_create_evaluation_detailEntity.cs | 14 + .../eva_create_evaluation_detailInputModel.cs | 12 + .../eva_create_evaluation_detailService.cs | 96 +- .../eva_create_evaluation_detailViewModel.cs | 12 + ...evaluation_detailWithSelectionViewModel.cs | 6 +- .../eva_adjust_postponement_normal_d.cshtml | 24 +- .../eva_create_evaluation_d.cshtml | 101 +- .../eva_adjust_postponement_normal_d.js | 8 +- .../eva_create_evaluation.js | 105 +- .../eva_create_evaluation_detail.js | 132 +-- 20 files changed, 3303 insertions(+), 178 deletions(-) create mode 100644 Migrations/25640312143303_UpdateEvaDetail.Designer.cs create mode 100644 Migrations/25640312143303_UpdateEvaDetail.cs create mode 100644 Migrations/25640312145857_UpdateEvaDetail02.Designer.cs create mode 100644 Migrations/25640312145857_UpdateEvaDetail02.cs create mode 100644 Migrations/25640312161519_UpdateEvaDetail03.Designer.cs create mode 100644 Migrations/25640312161519_UpdateEvaDetail03.cs diff --git a/EXCEL/eva_create_evaluation_detail.xlsx b/EXCEL/eva_create_evaluation_detail.xlsx index c144bbfa43c0b2f80ba1daeda19d32c72943335f..76d636386ddb4b88fc8f657b4055824805332c04 100644 GIT binary patch delta 6136 zcmZ8lWmHsc)Eye>ZWv%_hHhzTX^?Ia8Cn`7t~3HtLn@85N`r(nC?MUb2qVqV9UuC> z-+I6G-F1K5b?@EhJbR!0oVA`aVb^P4)q{&u*8Rqf4IKpHCx#E>(gMcX3A7?)?T`a{ zWzSHwAy)#7a+ZoBJEf_b^2uW<5Bp`d>6be;J9A4fxPbQ!s?q8w5gwe_O!bc(LqgXV z&I|W<-Y-q&e1E21uSd{-baaJ03*ZaOhG!|M=se~+=U;BCB3J3qPtuj4?rZD|Kn4-1 z=n>}-vx(!aQh)QaKL$?C&^QgkeVgd|^owHDzvO6?B$E2elXV=d$)!l>p4Vm_Khs6+ zUn7%4e3p15F zCYRmp{0(A0;KVVc7T_%paTiP<`5V4&1x2_#7ebT#JOd0YPwpH)>Ad8oem^UnVP#ji zy(Y>p3+?H6L`2uuUDm`I+SAmhgkWTlgG>4vX6B+Dfc7(BW8?U}e3y zkDJg;?&dDW=Q5|otB`Xf%`|;Fk2oW&WlS=^5g93J69~Kzc@->W!I}3JmvdMD(KF$f zZ^CGmH|-WJou0ZkwAm<#QaKH)x%e(&;Co6sO9gA=2Tb@kd7h2~M|RVROT+9<{Vfg( z$AERrUe@UdqNq`mWaVeVw%&Nnletyv>O&E_*hBu#&8!$}PP0#9my`?I&iRZojDjoi zQRn;VPUPo744IeQGg8$S)@Yl?FX-4q2ZMGT4S$DGYWgzN)ggLntPn8EDvDUaFhOE0 ziqjcx&JF29qAtAb*T{pwKL9z4a!PTd2 z8=dMz(y7bcfRyqb3OpZ;48Fln1P>=XL`N*B`P9B7;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+EecmFZXl%Z*uBBjcK1C$6p^20Hv>+GO zg4(P%%X5@tV_|bpwe`u^TNKP4mu?@nyEAPC$ujKUzrk?=-oG*b1@_Z6ApigX diff --git a/EXCEL/eva_limit_frame_employee.xlsx b/EXCEL/eva_limit_frame_employee.xlsx index 97ee7f3778ed7a34c0d53c1e60479f4c2912839f..bfc64bb7388b3f57e76c07f2b812942d04739644 100644 GIT binary patch delta 1867 zcmV-R2ekOyRLWGa^BM_ahTqAa1pojKll&SXe_NBPI1ql{s{IcX??PQGPz{9DUnn%Wpv1L`sk>qjJ zf1?FCfo4z3JZA7(9;~V;NxZ9#^2~B=dtl{pdNR)*#^pUe=zgCjWI>bHoSfL%NlCJp z!T76VT2#VYp4{UukIR?W;!8sF0$gm2o7c$!UiDa?S=e{PgyKQ+HOw%805r;i{I2!ui z0}OskDi)+Xm%7wg=gijiv4~kbf18x_-GBuP=&FeM@^{7#JAk4~xb_=Y*B}sA zAbp$J6YCACE4d)%D#DQwk1E2I5epUJ$%v(j@MT1xBKk7oNkt4~M5rPjWJIJQhB9KM zB1SS|tzit2y3s(ctXhz|CV!B!cK$@(xOi&9Dr)lPpvlh95cs`9P+lGde}u1XUJeV5 z4bBv{2{bk+cTd>hs94Ot1dylhcXu79H2=yek9z^smTE{65f;?zS`I9DMKDxpUK zX=vBDMcG_xAb5pnBBSzt!jVJO#z&)#x*;n8(Iuj-L-n`O+ewLl4PTcCE|wGFq6(O6 zAh`Yoq)CKoM6;6w;WlL#zWYMfx&RfvOW$8JN_#z)(E)D2k)h>rH3=r(QL4cg)S zp`)FP(ME*EJy#(<{&EXQy>4wAeWeycEwZx2fHoQq}3eSB8ZKrrP3a)WZAZYalsKobK~j%`BK#zRAox*@Cf&@tt0 z9p2^Jx*L@9JFI4N;bOG8ppV{Mg*d319tEV?T(Dq?1%W0oBJ2sWF;Uv zlG{35$$C49WC!l}I+klWq8XpqH5i5G2GbC&NS2Bu&_%~wD^{V#%0ml3x&yOnFgm^^ zCGx(xVJ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2EFCWOf7N98cbJLQOr`x@Oe?6Q{i87U`(e0lH_<|Ftp$6^8_(Xe*q1j zMwamM0#>7s>iM4R*=cIJ{hr_V9Jg;8@oULw_HS)>F41+Idx?YRCC;&X-oSH*U6I}; z5}udHQSZSW^amXy`jgzpTz92S}wtQ3w3G%-lKCma)Y zPk+@7S&Ov1Y*A5ee&XBeeG=`!td4eWhWDq%sfVg?u0kACLXQH{(5^{~)Ld#H_zlsF zjLQ3e36C7AF+Q5@svEKv5SHhi5B+$;;>q6(O6Ah`Yoq!B`mage@C zO1r3{prnBh=Z!>Q9zo_1sj&w5NHNQggxPyP>u1B_^WQnT0nSxptWw=KD>kLJH4h!RYvwoGAPDMx@L*y5crh z+xn6PN1NsX;~$^%f;vBOCGoC&Q&*f#jU#Vu1YPM|kjtoBvk)oObC zvy*`i76n2vb01B!%pfuW6VL+AX#*_&$(~$dB1Yp|)81`FlMx~lf7xO$>);EFts0f1 zI3g$j#T!wnO^#m6Wq5-E>zER(ZWQF`02VEZ%ZrR_${PdErqN(r1vc;`WhvJ=+B&Bx z#+GkEG8=h^^5VKNk~#l08>|`sWE;QK-6Ch8iR& zXK@_G_{ZzONc(3)f3HlOvT_IQcRI$MvIQT+(Y?3TXl&ayYSTW3&mZIW)zeGAYFMf6 zRvb`~2~N2I<{DGn30bKOPb%H@YG&QaA9`JZxIYwjr*&gohJQ<*)khzIAOatT4$)7_ zTl(-=E>V$?goGpx$-InXn$GBK{?Sc7>+ix11$mtRKhfjT6_DJPF`=^?np{nYCqU8X zKK~HKHvp5N0~E7LBjN=Kz-y?;uLS@AAd@vIJsUzXb019s003PA000pH0000000000 f00000%9D*LJ^@aX%qdg>V3Q##BL*NR000009({Ji diff --git a/Migrations/25640312143303_UpdateEvaDetail.Designer.cs b/Migrations/25640312143303_UpdateEvaDetail.Designer.cs new file mode 100644 index 0000000..c0fb9ef --- /dev/null +++ b/Migrations/25640312143303_UpdateEvaDetail.Designer.cs @@ -0,0 +1,936 @@ +// +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("25640312143303_UpdateEvaDetail")] + partial class UpdateEvaDetail + { + 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("eva_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_id"); + + 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_id"); + + 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(8000); + + 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("main_dept_id"); + + b.Property("percentage"); + + 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_limit_frame_employeeEntity", b => + { + b.Property("id"); + + b.Property("cost_of_living"); + + b.Property("created"); + + b.Property("employee_id"); + + b.Property("frame_group_guid"); + + b.Property("help_org_id"); + + b.Property("isActive"); + + b.Property("level_text") + .HasMaxLength(1000); + + b.Property("monthly_remuneration"); + + b.Property("order_of_data"); + + b.Property("org_id"); + + b.Property("position_allowance"); + + b.Property("position_text") + .HasMaxLength(1000); + + b.Property("salary"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("frame_group_guid"); + + b.ToTable("eva_limit_frame_employee"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_groupEntity", b => + { + b.Property("id"); + + b.Property("created"); + + b.Property("frame_plan_guid"); + + b.Property("group_guid"); + + b.Property("isActive"); + + b.Property("limit_frame_295"); + + b.Property("main_dept_id"); + + b.Property("remark") + .HasMaxLength(4000); + + b.Property("total_salary"); + + b.Property("total_salary_limit"); + + b.Property("total_salary_limit_rounded"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("frame_plan_guid"); + + b.HasIndex("group_guid"); + + b.ToTable("eva_limit_frame_group"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_planEntity", b => + { + b.Property("id"); + + b.Property("created"); + + b.Property("executed_date"); + + b.Property("isActive"); + + b.Property("limit_frame_005"); + + b.Property("limit_frame_005_total"); + + b.Property("limit_frame_005_total_rounded"); + + b.Property("plan_guid"); + + b.Property("salary_adjustment_date"); + + b.Property("status_chief") + .HasMaxLength(1); + + b.Property("status_self") + .HasMaxLength(1); + + b.Property("supervisor1"); + + b.Property("supervisor1_date"); + + b.Property("supervisor1_remark") + .HasMaxLength(1000); + + b.Property("supervisor1_result") + .HasMaxLength(1); + + b.Property("total_salary"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("plan_guid"); + + b.ToTable("eva_limit_frame_plan"); + }); + + 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_limit_frame_employeeEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_limit_frame_groupEntity", "eva_limit_frame_group_frame_group_guid") + .WithMany() + .HasForeignKey("frame_group_guid"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_groupEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_limit_frame_planEntity", "eva_limit_frame_plan_frame_plan_guid") + .WithMany() + .HasForeignKey("frame_plan_guid"); + + b.HasOne("TodoAPI2.Models.eva_evaluation_groupEntity", "eva_evaluation_group_group_guid") + .WithMany() + .HasForeignKey("group_guid"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_planEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_performance_planEntity", "eva_performance_plan_plan_guid") + .WithMany() + .HasForeignKey("plan_guid"); + }); + + 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/25640312143303_UpdateEvaDetail.cs b/Migrations/25640312143303_UpdateEvaDetail.cs new file mode 100644 index 0000000..5e36f67 --- /dev/null +++ b/Migrations/25640312143303_UpdateEvaDetail.cs @@ -0,0 +1,40 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace tb320eva.Migrations +{ + public partial class UpdateEvaDetail : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "eva_employee_id", + table: "eva_create_evaluation_detail", + nullable: true); + + migrationBuilder.AddColumn( + name: "supervisor1_id", + table: "eva_create_evaluation_detail", + nullable: true); + + migrationBuilder.AddColumn( + name: "supervisor2_id", + table: "eva_create_evaluation_detail", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "eva_employee_id", + table: "eva_create_evaluation_detail"); + + migrationBuilder.DropColumn( + name: "supervisor1_id", + table: "eva_create_evaluation_detail"); + + migrationBuilder.DropColumn( + name: "supervisor2_id", + table: "eva_create_evaluation_detail"); + } + } +} diff --git a/Migrations/25640312145857_UpdateEvaDetail02.Designer.cs b/Migrations/25640312145857_UpdateEvaDetail02.Designer.cs new file mode 100644 index 0000000..c5813d4 --- /dev/null +++ b/Migrations/25640312145857_UpdateEvaDetail02.Designer.cs @@ -0,0 +1,947 @@ +// +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("25640312145857_UpdateEvaDetail02")] + partial class UpdateEvaDetail02 + { + 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("eva_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_id"); + + 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_id"); + + 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.Property("work_period"); + + b.HasKey("id"); + + b.HasIndex("create_evaluation_id"); + + b.ToTable("eva_create_evaluation_detail"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_achievementEntity", b => + { + b.Property("id"); + + b.Property("achievement") + .HasMaxLength(8000); + + 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("main_dept_id"); + + b.Property("percentage"); + + 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_limit_frame_employeeEntity", b => + { + b.Property("id"); + + b.Property("cost_of_living"); + + b.Property("created"); + + b.Property("employee_id"); + + b.Property("frame_group_guid"); + + b.Property("help_org_id"); + + b.Property("isActive"); + + b.Property("level_text") + .HasMaxLength(1000); + + b.Property("monthly_remuneration"); + + b.Property("order_of_data"); + + b.Property("org_id"); + + b.Property("position_allowance"); + + b.Property("position_text") + .HasMaxLength(1000); + + b.Property("salary"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("frame_group_guid"); + + b.ToTable("eva_limit_frame_employee"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_groupEntity", b => + { + b.Property("id"); + + b.Property("created"); + + b.Property("frame_plan_guid"); + + b.Property("group_guid"); + + b.Property("isActive"); + + b.Property("limit_frame_295"); + + b.Property("main_dept_id"); + + b.Property("remark") + .HasMaxLength(4000); + + b.Property("total_salary"); + + b.Property("total_salary_limit"); + + b.Property("total_salary_limit_rounded"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("frame_plan_guid"); + + b.HasIndex("group_guid"); + + b.ToTable("eva_limit_frame_group"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_planEntity", b => + { + b.Property("id"); + + b.Property("created"); + + b.Property("executed_date"); + + b.Property("isActive"); + + b.Property("limit_frame_005"); + + b.Property("limit_frame_005_total"); + + b.Property("limit_frame_005_total_rounded"); + + b.Property("plan_guid"); + + b.Property("salary_adjustment_date"); + + b.Property("status_chief") + .HasMaxLength(1); + + b.Property("status_self") + .HasMaxLength(1); + + b.Property("supervisor1"); + + b.Property("supervisor1_date"); + + b.Property("supervisor1_remark") + .HasMaxLength(1000); + + b.Property("supervisor1_result") + .HasMaxLength(1); + + b.Property("total_salary"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("plan_guid"); + + b.ToTable("eva_limit_frame_plan"); + }); + + 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_create_evaluation_detailEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_create_evaluationEntity", "eva_create_evaluation_create_evaluation_id") + .WithMany() + .HasForeignKey("create_evaluation_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_limit_frame_employeeEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_limit_frame_groupEntity", "eva_limit_frame_group_frame_group_guid") + .WithMany() + .HasForeignKey("frame_group_guid"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_groupEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_limit_frame_planEntity", "eva_limit_frame_plan_frame_plan_guid") + .WithMany() + .HasForeignKey("frame_plan_guid"); + + b.HasOne("TodoAPI2.Models.eva_evaluation_groupEntity", "eva_evaluation_group_group_guid") + .WithMany() + .HasForeignKey("group_guid"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_planEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_performance_planEntity", "eva_performance_plan_plan_guid") + .WithMany() + .HasForeignKey("plan_guid"); + }); + + 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/25640312145857_UpdateEvaDetail02.cs b/Migrations/25640312145857_UpdateEvaDetail02.cs new file mode 100644 index 0000000..c2d416d --- /dev/null +++ b/Migrations/25640312145857_UpdateEvaDetail02.cs @@ -0,0 +1,43 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace tb320eva.Migrations +{ + public partial class UpdateEvaDetail02 : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "work_period", + table: "eva_create_evaluation_detail", + nullable: true); + + migrationBuilder.CreateIndex( + name: "IX_eva_create_evaluation_detail_create_evaluation_id", + table: "eva_create_evaluation_detail", + column: "create_evaluation_id"); + + migrationBuilder.AddForeignKey( + name: "FK_eva_create_evaluation_detail_eva_create_evaluation_create_e~", + table: "eva_create_evaluation_detail", + column: "create_evaluation_id", + principalTable: "eva_create_evaluation", + principalColumn: "id", + onDelete: ReferentialAction.Restrict); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_eva_create_evaluation_detail_eva_create_evaluation_create_e~", + table: "eva_create_evaluation_detail"); + + migrationBuilder.DropIndex( + name: "IX_eva_create_evaluation_detail_create_evaluation_id", + table: "eva_create_evaluation_detail"); + + migrationBuilder.DropColumn( + name: "work_period", + table: "eva_create_evaluation_detail"); + } + } +} diff --git a/Migrations/25640312161519_UpdateEvaDetail03.Designer.cs b/Migrations/25640312161519_UpdateEvaDetail03.Designer.cs new file mode 100644 index 0000000..6a35996 --- /dev/null +++ b/Migrations/25640312161519_UpdateEvaDetail03.Designer.cs @@ -0,0 +1,951 @@ +// +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("25640312161519_UpdateEvaDetail03")] + partial class UpdateEvaDetail03 + { + 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("eva_employee_id"); + + b.Property("help_org_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("order_of_data"); + + 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_id"); + + 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_id"); + + 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.Property("work_period"); + + b.HasKey("id"); + + b.HasIndex("create_evaluation_id"); + + b.ToTable("eva_create_evaluation_detail"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_achievementEntity", b => + { + b.Property("id"); + + b.Property("achievement") + .HasMaxLength(8000); + + 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("main_dept_id"); + + b.Property("percentage"); + + 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_limit_frame_employeeEntity", b => + { + b.Property("id"); + + b.Property("cost_of_living"); + + b.Property("created"); + + b.Property("employee_id"); + + b.Property("frame_group_guid"); + + b.Property("help_org_id"); + + b.Property("isActive"); + + b.Property("level_text") + .HasMaxLength(1000); + + b.Property("monthly_remuneration"); + + b.Property("order_of_data"); + + b.Property("org_id"); + + b.Property("position_allowance"); + + b.Property("position_text") + .HasMaxLength(1000); + + b.Property("salary"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("frame_group_guid"); + + b.ToTable("eva_limit_frame_employee"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_groupEntity", b => + { + b.Property("id"); + + b.Property("created"); + + b.Property("frame_plan_guid"); + + b.Property("group_guid"); + + b.Property("isActive"); + + b.Property("limit_frame_295"); + + b.Property("main_dept_id"); + + b.Property("remark") + .HasMaxLength(4000); + + b.Property("total_salary"); + + b.Property("total_salary_limit"); + + b.Property("total_salary_limit_rounded"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("frame_plan_guid"); + + b.HasIndex("group_guid"); + + b.ToTable("eva_limit_frame_group"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_planEntity", b => + { + b.Property("id"); + + b.Property("created"); + + b.Property("executed_date"); + + b.Property("isActive"); + + b.Property("limit_frame_005"); + + b.Property("limit_frame_005_total"); + + b.Property("limit_frame_005_total_rounded"); + + b.Property("plan_guid"); + + b.Property("salary_adjustment_date"); + + b.Property("status_chief") + .HasMaxLength(1); + + b.Property("status_self") + .HasMaxLength(1); + + b.Property("supervisor1"); + + b.Property("supervisor1_date"); + + b.Property("supervisor1_remark") + .HasMaxLength(1000); + + b.Property("supervisor1_result") + .HasMaxLength(1); + + b.Property("total_salary"); + + b.Property("updated"); + + b.HasKey("id"); + + b.HasIndex("plan_guid"); + + b.ToTable("eva_limit_frame_plan"); + }); + + 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_create_evaluation_detailEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_create_evaluationEntity", "eva_create_evaluation_create_evaluation_id") + .WithMany() + .HasForeignKey("create_evaluation_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_limit_frame_employeeEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_limit_frame_groupEntity", "eva_limit_frame_group_frame_group_guid") + .WithMany() + .HasForeignKey("frame_group_guid"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_groupEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_limit_frame_planEntity", "eva_limit_frame_plan_frame_plan_guid") + .WithMany() + .HasForeignKey("frame_plan_guid"); + + b.HasOne("TodoAPI2.Models.eva_evaluation_groupEntity", "eva_evaluation_group_group_guid") + .WithMany() + .HasForeignKey("group_guid"); + }); + + modelBuilder.Entity("TodoAPI2.Models.eva_limit_frame_planEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_performance_planEntity", "eva_performance_plan_plan_guid") + .WithMany() + .HasForeignKey("plan_guid"); + }); + + 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/25640312161519_UpdateEvaDetail03.cs b/Migrations/25640312161519_UpdateEvaDetail03.cs new file mode 100644 index 0000000..bc9369f --- /dev/null +++ b/Migrations/25640312161519_UpdateEvaDetail03.cs @@ -0,0 +1,31 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace tb320eva.Migrations +{ + public partial class UpdateEvaDetail03 : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "help_org_id", + table: "eva_create_evaluation_detail", + nullable: true); + + migrationBuilder.AddColumn( + name: "order_of_data", + table: "eva_create_evaluation_detail", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "help_org_id", + table: "eva_create_evaluation_detail"); + + migrationBuilder.DropColumn( + name: "order_of_data", + table: "eva_create_evaluation_detail"); + } + } +} diff --git a/Migrations/DataContextModelSnapshot.cs b/Migrations/DataContextModelSnapshot.cs index 63c565f..2c25289 100644 --- a/Migrations/DataContextModelSnapshot.cs +++ b/Migrations/DataContextModelSnapshot.cs @@ -222,6 +222,10 @@ namespace tb320eva.Migrations b.Property("employee_id"); + b.Property("eva_employee_id"); + + b.Property("help_org_id"); + b.Property("isActive"); b.Property("level_score_chief") @@ -236,6 +240,8 @@ namespace tb320eva.Migrations b.Property("level_score_supervisor2A") .HasMaxLength(255); + b.Property("order_of_data"); + b.Property("score_chief"); b.Property("score_supervisor"); @@ -293,6 +299,8 @@ namespace tb320eva.Migrations b.Property("supervisor1_date"); + b.Property("supervisor1_id"); + b.Property("supervisor1_remark") .HasMaxLength(1000); @@ -313,6 +321,8 @@ namespace tb320eva.Migrations b.Property("supervisor2_date"); + b.Property("supervisor2_id"); + b.Property("supervisor2_remark") .HasMaxLength(1000); @@ -337,8 +347,12 @@ namespace tb320eva.Migrations b.Property("updated"); + b.Property("work_period"); + b.HasKey("id"); + b.HasIndex("create_evaluation_id"); + b.ToTable("eva_create_evaluation_detail"); }); @@ -856,6 +870,13 @@ namespace tb320eva.Migrations .HasForeignKey("performance_plan_id"); }); + modelBuilder.Entity("TodoAPI2.Models.eva_create_evaluation_detailEntity", b => + { + b.HasOne("TodoAPI2.Models.eva_create_evaluationEntity", "eva_create_evaluation_create_evaluation_id") + .WithMany() + .HasForeignKey("create_evaluation_id"); + }); + modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_achievementEntity", b => { b.HasOne("TodoAPI2.Models.eva_create_evaluation_detailEntity", "eva_create_evaluation_detail") diff --git a/Models/eva_create_evaluation/eva_create_evaluationService.cs b/Models/eva_create_evaluation/eva_create_evaluationService.cs index a6c87a6..dd3c502 100644 --- a/Models/eva_create_evaluation/eva_create_evaluationService.cs +++ b/Models/eva_create_evaluation/eva_create_evaluationService.cs @@ -132,7 +132,7 @@ namespace TodoAPI2.Models && (m_eva_create_evaluation.evaluation_group_id == model.evaluation_group_id || !model.evaluation_group_id.HasValue) - orderby m_eva_create_evaluation.created descending + orderby fk_eva_performance_planResult1.fiscal_year, fk_eva_performance_planResult1.theTime, fk_eva_evaluation_groupResult5.code select new eva_create_evaluationViewModel() { id = m_eva_create_evaluation.id, 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 e61ac89..ecfc4c0 100644 --- a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailEntity.cs +++ b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailEntity.cs @@ -14,6 +14,8 @@ namespace TodoAPI2.Models { public class eva_create_evaluation_detailEntity : BaseEntity2 { + [ForeignKey("create_evaluation_id")] + public eva_create_evaluationEntity eva_create_evaluation_create_evaluation_id { get; set; } public int? create_evaluation_id { get; set; } public int? employee_id { get; set; } @@ -177,6 +179,18 @@ namespace TodoAPI2.Models [MaxLength(1000)] public string chief_a_reject_reason { get; set; } + + public int? eva_employee_id { get; set; } + + public int? supervisor1_id { get; set; } + + public int? supervisor2_id { get; set; } + + public decimal? work_period { get; set; } + + public int? order_of_data { get; set; } + + public int? help_org_id { get; set; } } } diff --git a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailInputModel.cs b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailInputModel.cs index 2035b73..905ffc1 100644 --- a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailInputModel.cs +++ b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailInputModel.cs @@ -22,6 +22,18 @@ namespace TodoAPI2.Models public int? chief { get; set; } + public int? eva_employee_id { get; set; } + + public int? supervisor1_id { get; set; } + + public int? supervisor2_id { get; set; } + + public decimal? work_period { get; set; } + + public int? order_of_data { get; set; } + + public int? help_org_id { get; set; } + public string active_mode { get; set; } } } diff --git a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailService.cs b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailService.cs index b9142d9..d9824d4 100644 --- a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailService.cs +++ b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailService.cs @@ -20,18 +20,18 @@ namespace TodoAPI2.Models public class eva_create_evaluation_detailService : Ieva_create_evaluation_detailService { private IBaseRepository2 _repository; - private IMyDatabase db; - private Iexternal_linkageService ext; + private IMyDatabase db; + private Iexternal_linkageService ext; private Iexternal_employeeService emp; private Iexternal_competencyService com; - public eva_create_evaluation_detailService(IBaseRepository2 repository, + public eva_create_evaluation_detailService(IBaseRepository2 repository, IMyDatabase mydb, Iexternal_linkageService inext, Iexternal_employeeService inemp, Iexternal_competencyService incom) { _repository = repository; - db = mydb; - ext = inext; + db = mydb; + ext = inext; emp = inemp; com = incom; } @@ -53,7 +53,7 @@ namespace TodoAPI2.Models { return Mapper.Map>(entities); } - + #endregion #region Public Functions @@ -68,31 +68,46 @@ namespace TodoAPI2.Models public eva_create_evaluation_detailWithSelectionViewModel GetWithSelection(int id) { var entity = _repository.Get(id); + + var plan = (from x in _repository.Context.eva_create_evaluation where x.id == entity.create_evaluation_id select x.performance_plan_id).FirstOrDefault(); + var i = Mapper.Map(entity); + i.item_create_evaluation_id = (from x in _repository.Context.eva_create_evaluation + join y in _repository.Context.eva_evaluation_group on x.evaluation_group_id equals y.id + where x.performance_plan_id==plan + orderby y.code + select new external_linkageViewModel { external_id = x.id, external_name = y.thegroup }).ToList(); i.item_employee_id = emp.GetAllEmployee(); i.item_chief = i.item_employee_id; - + i.item_eva_employee_id = i.item_employee_id; + i.item_supervisor1_id = i.item_employee_id; + i.item_supervisor2_id = i.item_employee_id; + i.item_help_org_id = ext.GetDepartmentData(); return i; } public eva_create_evaluation_detailWithSelectionViewModel GetBlankItem() { var i = new eva_create_evaluation_detailWithSelectionViewModel(); + i.item_create_evaluation_id = null; i.item_employee_id = emp.GetAllEmployee(); i.item_chief = i.item_employee_id; - + i.item_eva_employee_id = i.item_employee_id; + i.item_supervisor1_id = i.item_employee_id; + i.item_supervisor2_id = i.item_employee_id; + i.item_help_org_id = ext.GetDepartmentData(); return i; } public List GetListBycreate_evaluation_id(int? create_evaluation_id) { - var model = new eva_create_evaluation_detailSearchModel(); + var model = new eva_create_evaluation_detailSearchModel(); model.create_evaluation_id = create_evaluation_id; return GetListBySearch(model); } - public List GetListBySearch(eva_create_evaluation_detailSearchModel model) + public List GetListBySearch(eva_create_evaluation_detailSearchModel model) { var allemp = emp.GetListByemployee_type(null, null); @@ -119,9 +134,13 @@ namespace TodoAPI2.Models into sort_depResult2 from fk_sort_depResult2 in sort_depResult2.DefaultIfEmpty() - where 1 ==1 + join fk_external_linkage46 in ext.GetDepartmentData() on m_eva_create_evaluation_detail.help_org_id equals fk_external_linkage46.id + into external_linkageResult46 + from fk_external_linkageResult46 in external_linkageResult46.DefaultIfEmpty() + + where 1 == 1 && (m_eva_create_evaluation_detail.create_evaluation_id == model.create_evaluation_id || !model.create_evaluation_id.HasValue) - + orderby fk_sort_depResult2.external_code, //fk_external_linkageResult2.department_degree_id, @@ -163,6 +182,13 @@ namespace TodoAPI2.Models status_chief = m_eva_create_evaluation_detail.status_chief, status_supervisor = m_eva_create_evaluation_detail.status_supervisor, + eva_employee_id = m_eva_create_evaluation_detail.eva_employee_id, + supervisor1_id = m_eva_create_evaluation_detail.supervisor1_id, + supervisor2_id = m_eva_create_evaluation_detail.supervisor2_id, + work_period = m_eva_create_evaluation_detail.work_period, + order_of_data = m_eva_create_evaluation_detail.order_of_data, + help_org_id = m_eva_create_evaluation_detail.help_org_id, + status_supervisor1A = m_eva_create_evaluation_detail.status_supervisor1A, status_supervisor2A = m_eva_create_evaluation_detail.status_supervisor2A, @@ -186,6 +212,7 @@ namespace TodoAPI2.Models status_supervisor2A_click_date = m_eva_create_evaluation_detail.status_supervisor2A_click_date, department_name = fk_external_linkageResult2.department_name, + help_org_id_external_linkage_external_name = fk_external_linkageResult46.external_name, isActive = m_eva_create_evaluation_detail.isActive, Created = m_eva_create_evaluation_detail.created, @@ -205,10 +232,10 @@ namespace TodoAPI2.Models int? newkey = 0; var x = (from i in _repository.Context.eva_create_evaluation_detail - orderby i.id descending - select i).Take(1).ToList(); + orderby i.id descending + select i).Take(1).ToList(); - if(x.Count > 0) + if (x.Count > 0) { newkey = x[0].id + 1; } @@ -224,7 +251,7 @@ namespace TodoAPI2.Models var inserted = _repository.Insert(entity); - + return Get(inserted.id); } @@ -236,28 +263,38 @@ namespace TodoAPI2.Models existingEntity.create_evaluation_id = model.create_evaluation_id; existingEntity.employee_id = model.employee_id; existingEntity.chief = model.chief; - + existingEntity.eva_employee_id = model.eva_employee_id; + existingEntity.supervisor1_id = model.supervisor1_id; + existingEntity.supervisor2_id = model.supervisor2_id; + existingEntity.work_period = model.work_period; + existingEntity.order_of_data = model.order_of_data; + existingEntity.help_org_id = model.help_org_id; var updated = _repository.Update(id, existingEntity); return Get(updated.id); } else - throw new NotificationException("No data to update"); + throw new NotificationException("No data to update"); } - public string UpdateMultiple(List model) + public string UpdateMultiple(List model) { - foreach(var i in model) + foreach (var i in model) { if (i.active_mode == "1" && i.id.HasValue) // update - { + { var existingEntity = _repository.Get(i.id.Value); if (existingEntity != null) { - existingEntity.create_evaluation_id = i.create_evaluation_id; - existingEntity.employee_id = i.employee_id; - existingEntity.chief = i.chief; - + existingEntity.create_evaluation_id = i.create_evaluation_id; + existingEntity.employee_id = i.employee_id; + existingEntity.chief = i.chief; + existingEntity.eva_employee_id = i.eva_employee_id; + existingEntity.supervisor1_id = i.supervisor1_id; + existingEntity.supervisor2_id = i.supervisor2_id; + existingEntity.work_period = i.work_period; + existingEntity.order_of_data = i.order_of_data; + existingEntity.help_org_id = i.help_org_id; _repository.UpdateWithoutCommit(i.id.Value, existingEntity); } @@ -269,15 +306,15 @@ namespace TodoAPI2.Models _repository.InsertWithoutCommit(entity); } else if (i.active_mode == "0" && i.id.HasValue) // remove - { + { _repository.DeleteWithoutCommit(i.id.Value); } else if (i.active_mode == "0" && !i.id.HasValue) { // nothing to do - } + } } - _repository.Context.SaveChanges(); + _repository.Context.SaveChanges(); return model.Count().ToString(); } @@ -327,6 +364,7 @@ namespace TodoAPI2.Models n.employee_id = i; n.create_evaluation_id = create_evaluation_id; n.chief = emp.GetLeader(i); + n.work_period = 6; n.created = DateTime.Now; n.updated = DateTime.Now; n.isActive = true; @@ -400,7 +438,7 @@ namespace TodoAPI2.Models where i.create_evaluation_detail_id == id select i; _repository.Context.eva_evaluation_behavior.RemoveRange(a2); - + _repository.Delete(id); return; diff --git a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailViewModel.cs b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailViewModel.cs index b5a1bf7..e7ab70f 100644 --- a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailViewModel.cs +++ b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailViewModel.cs @@ -104,12 +104,24 @@ namespace TodoAPI2.Models public DateTime? status_supervisor1A_click_date { get; set; } public DateTime? status_supervisor2A_click_date { get; set; } + public int? eva_employee_id { get; set; } + + public int? supervisor1_id { get; set; } + + public int? supervisor2_id { get; set; } + + public decimal? work_period { get; set; } + public int? order_of_data { get; set; } + + public int? help_org_id { get; set; } + public string txt_status_self { get { return getStatusText(status_self) + MyHelper.GetDateStringForReport(status_self_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); } } public string txt_status_supervisor1A { get { return getStatusText(status_supervisor1A) + MyHelper.GetDateStringForReport(status_supervisor1A_click_date); } } public string txt_status_supervisor2A { get { return getStatusText(status_supervisor2A) + MyHelper.GetDateStringForReport(status_supervisor2A_click_date); } } + public string help_org_id_external_linkage_external_name { get; set; } private string getStatusText(string s) { if (!string.IsNullOrEmpty(s)) diff --git a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailWithSelectionViewModel.cs b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailWithSelectionViewModel.cs index 2e4e7d9..329fb6c 100644 --- a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailWithSelectionViewModel.cs +++ b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailWithSelectionViewModel.cs @@ -7,8 +7,12 @@ namespace TodoAPI2.Models { public class eva_create_evaluation_detailWithSelectionViewModel: eva_create_evaluation_detailViewModel { + public List item_create_evaluation_id { get; set; } public List item_employee_id { get; set; } public List item_chief { get; set; } - + public List item_eva_employee_id { get; set; } + public List item_supervisor1_id { get; set; } + public List item_supervisor2_id { get; set; } + public List item_help_org_id { get; set; } } } \ No newline at end of file diff --git a/Views/eva_adjust_postponement_normalView/eva_adjust_postponement_normal_d.cshtml b/Views/eva_adjust_postponement_normalView/eva_adjust_postponement_normal_d.cshtml index a24b650..ce787b4 100644 --- a/Views/eva_adjust_postponement_normalView/eva_adjust_postponement_normal_d.cshtml +++ b/Views/eva_adjust_postponement_normalView/eva_adjust_postponement_normal_d.cshtml @@ -99,15 +99,12 @@ ลำดับ - - - @@ -116,11 +113,28 @@ - - + + + + + + + + รวม + +

+ + + + +

+ + + + diff --git a/Views/eva_create_evaluationView/eva_create_evaluation_d.cshtml b/Views/eva_create_evaluationView/eva_create_evaluation_d.cshtml index 8b45973..0e6486f 100644 --- a/Views/eva_create_evaluationView/eva_create_evaluation_d.cshtml +++ b/Views/eva_create_evaluationView/eva_create_evaluation_d.cshtml @@ -18,20 +18,55 @@
-
-
+
+ + +
+
-
+
+
+
+ + +
+ +
+ + +
+ +
+ + +
+
+
+
+ + +
+
+ + +
+ + +
+ + +
+
@@ -166,6 +201,7 @@ เครื่องมือ + @@ -174,6 +210,8 @@ + + @@ -197,32 +235,41 @@ } diff --git a/wwwroot/js/eva_adjust_postponement_normal/eva_adjust_postponement_normal_d.js b/wwwroot/js/eva_adjust_postponement_normal/eva_adjust_postponement_normal_d.js index 05209a4..affac9d 100644 --- a/wwwroot/js/eva_adjust_postponement_normal/eva_adjust_postponement_normal_d.js +++ b/wwwroot/js/eva_adjust_postponement_normal/eva_adjust_postponement_normal_d.js @@ -149,6 +149,8 @@ function Oneva_adjust_postponement_normal_percentageChange(){ function Oneva_adjust_postponement_detail_normal_02_promoted_percentageChanged(){ var current_quota = $("#eva_adjust_postponement_normal_limit_quota").val().replace(/[,-]/g,''); var sum_postpone = 0; + var sum_before = 0; + var sum_after = 0; $('#eva_adjust_postponement_detail_normal_02Body tr').each(function () { var i = $(this).find("#rowCount").text(); @@ -171,10 +173,14 @@ function Oneva_adjust_postponement_detail_normal_02_promoted_percentageChanged() $("#eva_adjust_postponement_detail_normal_02_new_cost_living_" + i).text(0); } sum_postpone += new_added; + sum_before += old_salary; + sum_after += new_salary; } }); // $("#remain_cost").val(Math.round((current_quota - sum_postpone)*100)/100); - $("#remain_cost").maskMoney('mask',Math.round((current_quota - sum_postpone)*100)/100); + $("#remain_cost").maskMoney('mask', Math.round((current_quota - sum_postpone) * 100) / 100); + $("#sum_before").text(formatNumber(sum_before)); + $("#sum_after").text(formatNumber(sum_after)); } diff --git a/wwwroot/js/eva_create_evaluation/eva_create_evaluation.js b/wwwroot/js/eva_create_evaluation/eva_create_evaluation.js index e83e336..f700472 100644 --- a/wwwroot/js/eva_create_evaluation/eva_create_evaluation.js +++ b/wwwroot/js/eva_create_evaluation/eva_create_evaluation.js @@ -5,42 +5,42 @@ var eva_create_evaluation_API = "/api/eva_create_evaluation/"; function eva_create_evaluation_GetSearchParameter() { var eva_create_evaluationSearchObject = new Object(); -eva_create_evaluationSearchObject.performance_plan_id = $("#s_eva_create_evaluation_performance_plan_id").val(); -eva_create_evaluationSearchObject.evaluation_group_id = $("#s_eva_create_evaluation_evaluation_group_id").val(); + eva_create_evaluationSearchObject.performance_plan_id = $("#s_eva_create_evaluation_performance_plan_id").val(); + eva_create_evaluationSearchObject.evaluation_group_id = $("#s_eva_create_evaluation_evaluation_group_id").val(); return eva_create_evaluationSearchObject; } function eva_create_evaluation_FeedDataToSearchForm(data) { -DropDownClearFormAndFeedWithData($("#s_eva_create_evaluation_performance_plan_id"), data, "id", "display_text", "item_performance_plan_id", data.performance_plan_id); -DropDownClearFormAndFeedWithData($("#s_eva_create_evaluation_evaluation_group_id"), data, "id", "thegroup", "item_evaluation_group_id", data.evaluation_group_id); + DropDownClearFormAndFeedWithData($("#s_eva_create_evaluation_performance_plan_id"), data, "id", "display_text", "item_performance_plan_id", data.performance_plan_id); + DropDownClearFormAndFeedWithData($("#s_eva_create_evaluation_evaluation_group_id"), data, "id", "thegroup", "item_evaluation_group_id", data.evaluation_group_id); } //================= Form Data Customizaiton ========================================= function eva_create_evaluation_FeedDataToForm(data) { -$("#eva_create_evaluation_id").val(data.id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_performance_plan_id"), data, "id", "display_text", "item_performance_plan_id", data.performance_plan_id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_employee_id"), data, "id", "fullname", "item_employee_id", data.employee_id); -$("#eva_create_evaluation_score1").val(data.score1); -$("#eva_create_evaluation_score2").val(data.score2); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_evaluation_group_id"), data, "id", "thegroup", "item_evaluation_group_id", data.evaluation_group_id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_supervisor1_id"), data, "id", "fullname", "item_supervisor1_id", data.supervisor1_id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_supervisor2_id"), data, "id", "fullname", "item_supervisor2_id", data.supervisor2_id); + $("#eva_create_evaluation_id").val(data.id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_performance_plan_id"), data, "id", "display_text", "item_performance_plan_id", data.performance_plan_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_employee_id"), data, "id", "fullname", "item_employee_id", data.employee_id); + $("#eva_create_evaluation_score1").val(data.score1); + $("#eva_create_evaluation_score2").val(data.score2); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_evaluation_group_id"), data, "id", "thegroup", "item_evaluation_group_id", data.evaluation_group_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_supervisor1_id"), data, "id", "fullname", "item_supervisor1_id", data.supervisor1_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_supervisor2_id"), data, "id", "fullname", "item_supervisor2_id", data.supervisor2_id); } function eva_create_evaluation_GetFromForm() { var eva_create_evaluationObject = new Object(); -eva_create_evaluationObject.id = $("#eva_create_evaluation_id").val(); -eva_create_evaluationObject.performance_plan_id = $("#eva_create_evaluation_performance_plan_id").val(); -eva_create_evaluationObject.employee_id = $("#eva_create_evaluation_employee_id").val(); -eva_create_evaluationObject.score1 = $("#eva_create_evaluation_score1").val(); -eva_create_evaluationObject.score2 = $("#eva_create_evaluation_score2").val(); -eva_create_evaluationObject.evaluation_group_id = $("#eva_create_evaluation_evaluation_group_id").val(); -eva_create_evaluationObject.supervisor1_id = $("#eva_create_evaluation_supervisor1_id").val(); -eva_create_evaluationObject.supervisor2_id = $("#eva_create_evaluation_supervisor2_id").val(); + eva_create_evaluationObject.id = $("#eva_create_evaluation_id").val(); + eva_create_evaluationObject.performance_plan_id = $("#eva_create_evaluation_performance_plan_id").val(); + eva_create_evaluationObject.employee_id = $("#eva_create_evaluation_employee_id").val(); + eva_create_evaluationObject.score1 = $("#eva_create_evaluation_score1").val(); + eva_create_evaluationObject.score2 = $("#eva_create_evaluation_score2").val(); + eva_create_evaluationObject.evaluation_group_id = $("#eva_create_evaluation_evaluation_group_id").val(); + eva_create_evaluationObject.supervisor1_id = $("#eva_create_evaluation_supervisor1_id").val(); + eva_create_evaluationObject.supervisor2_id = $("#eva_create_evaluation_supervisor2_id").val(); return eva_create_evaluationObject; } @@ -48,14 +48,14 @@ eva_create_evaluationObject.supervisor2_id = $("#eva_create_evaluation_superviso function eva_create_evaluation_InitialForm(s) { var successFunc = function (result) { eva_create_evaluation_FeedDataToForm(result); - eva_create_evaluation_FeedDataToSearchForm(result); + eva_create_evaluation_FeedDataToSearchForm(result); if (s) { // Incase model popup $("#eva_create_evaluationModel").modal("show"); } - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxGetRequest(apisite + eva_create_evaluation_API + "GetBlankItem", successFunc, AlertDanger); } @@ -82,15 +82,15 @@ function eva_create_evaluation_SetEditForm(a) { eva_create_evaluation_editMode = "UPDATE"; eva_create_evaluation_FeedDataToForm(result); $("#eva_create_evaluationModel").modal("show"); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxGetRequest(apisite + eva_create_evaluation_API + a, successFunc, AlertDanger); } function eva_create_evaluation_SetCreateForm(s) { eva_create_evaluation_editMode = "CREATE"; - eva_create_evaluation_InitialForm(s); + eva_create_evaluation_InitialForm(s); } function eva_create_evaluation_RefreshTable() { @@ -108,8 +108,7 @@ var eva_create_evaluation_customValidation = function (group) { }; function eva_create_evaluation_PutUpdate() { - if (!ValidateForm('eva_create_evaluation', eva_create_evaluation_customValidation)) - { + if (!ValidateForm('eva_create_evaluation', eva_create_evaluation_customValidation)) { return; } @@ -121,9 +120,9 @@ function eva_create_evaluation_PutUpdate() { $("#eva_create_evaluationModel").modal("hide"); AlertSuccess(result.message); eva_create_evaluation_RefreshTable(); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxPutRequest(apisite + eva_create_evaluation_API + data.id, data, successFunc1, AlertDanger); } // Create mode @@ -132,9 +131,9 @@ function eva_create_evaluation_PutUpdate() { $("#eva_create_evaluationModel").modal("hide"); AlertSuccess(result.message); eva_create_evaluation_RefreshTable(); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxPostRequest(apisite + eva_create_evaluation_API, data, successFunc2, AlertDanger); } } @@ -145,9 +144,9 @@ function eva_create_evaluation_GoDelete(a) { $("#eva_create_evaluationModel").modal("hide"); AlertSuccess(result.message); eva_create_evaluation_RefreshTable(); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxDeleteRequest(apisite + eva_create_evaluation_API + a, null, successFunc, AlertDanger); } } @@ -157,40 +156,40 @@ function eva_create_evaluation_GoDelete(a) { var eva_create_evaluationTableV; var eva_create_evaluation_setupTable = function (result) { - tmp = '"'; + tmp = '"'; eva_create_evaluationTableV = $('#eva_create_evaluationTable').DataTable({ "processing": true, "serverSide": false, "data": result, - "select": false, + "select": false, "columns": [ - { "data": "id" }, - { "data": "performance_plan_id_eva_performance_plan_fiscal_year" }, -{ "data": "evaluation_group_id_eva_evaluation_group_name" }, - { "data": "employee_id_external_linkage_external_name" }, - { "data": "score1" }, - { "data": "score2" }, - + { "data": "id" }, + { "data": "performance_plan_id_eva_performance_plan_fiscal_year" }, + { "data": "evaluation_group_id_eva_evaluation_group_name" }, + { "data": "employee_id_external_linkage_external_name" }, + { "data": "score1" }, + { "data": "score2" }, + ], "columnDefs": [ { "targets": 0, "data": "id", "render": function (data, type, row, meta) { - return " "; + return " "; } }], "language": { "url": appsite + "/DataTables-1.10.16/thai.json" }, "paging": true, - "searching": false + "searching": false }); - endLoad(); + endLoad(); }; function eva_create_evaluation_InitiateDataTable() { - startLoad(); + startLoad(); AjaxGetRequest(apisite + "/api/eva_create_evaluation/GetListBySearch", eva_create_evaluation_setupTable, AlertDanger); } @@ -199,10 +198,10 @@ function eva_create_evaluation_DoSearch() { var eva_create_evaluation_reload = function (result) { eva_create_evaluationTableV.destroy(); eva_create_evaluation_setupTable(result); - endLoad(); + endLoad(); }; - startLoad(); - AjaxGetRequest(apisite + "/api/eva_create_evaluation/GetListBySearch?"+p, eva_create_evaluation_reload, AlertDanger); + startLoad(); + AjaxGetRequest(apisite + "/api/eva_create_evaluation/GetListBySearch?" + p, eva_create_evaluation_reload, AlertDanger); } function eva_create_evaluation_GetSelect(f) { @@ -219,15 +218,13 @@ function eva_create_evaluation_GetSelect(f) { //================= Control Function ========================================= -function Oneva_create_evaluation_score1Change() -{ +function Oneva_create_evaluation_score1Change() { var s1 = $("#eva_create_evaluation_score1").val(); var s2 = $("#eva_create_evaluation_score2").val(); $("#eva_create_evaluation_score2").val(100 - s1); } -function Oneva_create_evaluation_score2Change() -{ +function Oneva_create_evaluation_score2Change() { var s1 = $("#eva_create_evaluation_score1").val(); var s2 = $("#eva_create_evaluation_score2").val(); $("#eva_create_evaluation_score1").val(100 - s2); diff --git a/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js b/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js index 20943af..9d1e062 100644 --- a/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js +++ b/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js @@ -5,33 +5,44 @@ var eva_create_evaluation_detail_API = "/api/eva_create_evaluation_detail/"; function eva_create_evaluation_detail_GetSearchParameter() { var eva_create_evaluation_detailSearchObject = new Object(); -eva_create_evaluation_detailSearchObject.create_evaluation_id = getUrlParameter("id"); //$("#s_eva_create_evaluation_detail_create_evaluation_id").val(); + eva_create_evaluation_detailSearchObject.create_evaluation_id = getUrlParameter("id"); //$("#s_eva_create_evaluation_detail_create_evaluation_id").val(); return eva_create_evaluation_detailSearchObject; } function eva_create_evaluation_detail_FeedDataToSearchForm(data) { -$("#s_eva_create_evaluation_detail_create_evaluation_id").val(data.create_evaluation_id); + $("#s_eva_create_evaluation_detail_create_evaluation_id").val(data.create_evaluation_id); } //================= Form Data Customizaiton ========================================= function eva_create_evaluation_detail_FeedDataToForm(data) { -$("#eva_create_evaluation_detail_id").val(data.id); -$("#eva_create_evaluation_detail_create_evaluation_id").val(data.create_evaluation_id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_employee_id"), data, "id", "fullname", "item_employee_id", data.employee_id); -DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_chief"), data, "id", "fullname", "item_chief", data.chief); + $("#eva_create_evaluation_detail_id").val(data.id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_create_evaluation_id"), data, "external_id", "external_name", "item_create_evaluation_id", data.create_evaluation_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_employee_id"), data, "id", "fullname", "item_employee_id", data.employee_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_chief"), data, "id", "fullname", "item_chief", data.chief); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_eva_employee_id"), data, "id", "fullname", "item_eva_employee_id", data.eva_employee_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_supervisor1_id"), data, "id", "fullname", "item_supervisor1_id", data.supervisor1_id); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_supervisor2_id"), data, "id", "fullname", "item_supervisor2_id", data.supervisor2_id); + $("#eva_create_evaluation_detail_work_period").val(data.work_period); + $("#eva_create_evaluation_detail_order_of_data").val(data.order_of_data); + DropDownClearFormAndFeedWithData($("#eva_create_evaluation_detail_help_org_id"), data, "id", "external_name", "item_help_org_id", data.help_org_id); } function eva_create_evaluation_detail_GetFromForm() { var eva_create_evaluation_detailObject = new Object(); -eva_create_evaluation_detailObject.id = $("#eva_create_evaluation_detail_id").val(); -eva_create_evaluation_detailObject.create_evaluation_id = $("#eva_create_evaluation_detail_create_evaluation_id").val(); -eva_create_evaluation_detailObject.employee_id = $("#eva_create_evaluation_detail_employee_id").val(); -eva_create_evaluation_detailObject.chief = $("#eva_create_evaluation_detail_chief").val(); - + eva_create_evaluation_detailObject.id = $("#eva_create_evaluation_detail_id").val(); + eva_create_evaluation_detailObject.create_evaluation_id = $("#eva_create_evaluation_detail_create_evaluation_id").val(); + eva_create_evaluation_detailObject.employee_id = $("#eva_create_evaluation_detail_employee_id").val(); + eva_create_evaluation_detailObject.chief = $("#eva_create_evaluation_detail_chief").val(); + eva_create_evaluation_detailObject.eva_employee_id = $("#eva_create_evaluation_detail_eva_employee_id").val(); + eva_create_evaluation_detailObject.supervisor1_id = $("#eva_create_evaluation_detail_supervisor1_id").val(); + eva_create_evaluation_detailObject.supervisor2_id = $("#eva_create_evaluation_detail_supervisor2_id").val(); + eva_create_evaluation_detailObject.work_period = $("#eva_create_evaluation_detail_work_period").val(); + eva_create_evaluation_detailObject.order_of_data = $("#eva_create_evaluation_detail_order_of_data").val(); + eva_create_evaluation_detailObject.help_org_id = $("#eva_create_evaluation_detail_help_org_id").val(); return eva_create_evaluation_detailObject; } @@ -39,14 +50,14 @@ eva_create_evaluation_detailObject.chief = $("#eva_create_evaluation_detail_chie function eva_create_evaluation_detail_InitialForm(s) { var successFunc = function (result) { eva_create_evaluation_detail_FeedDataToForm(result); - eva_create_evaluation_detail_FeedDataToSearchForm(result); + eva_create_evaluation_detail_FeedDataToSearchForm(result); if (s) { // Incase model popup $("#eva_create_evaluation_detailModel").modal("show"); } - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxGetRequest(apisite + eva_create_evaluation_detail_API + "GetBlankItem", successFunc, AlertDanger); } @@ -62,7 +73,7 @@ function eva_create_evaluation_detail_GoCreate() { //window_open(appsite + "/eva_create_evaluation_detailView/eva_create_evaluation_detail_d"); } -function eva_create_evaluation_detail_GoEdit(a) { +function eva_create_evaluation_detail_GoEdit(a) { // Incase model popup eva_create_evaluation_detail_SetEditForm(a); @@ -76,15 +87,15 @@ function eva_create_evaluation_detail_SetEditForm(a) { eva_create_evaluation_detail_editMode = "UPDATE"; eva_create_evaluation_detail_FeedDataToForm(result); $("#eva_create_evaluation_detailModel").modal("show"); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxGetRequest(apisite + eva_create_evaluation_detail_API + a, successFunc, AlertDanger); } function eva_create_evaluation_detail_SetCreateForm(s) { eva_create_evaluation_detail_editMode = "CREATE"; - eva_create_evaluation_detail_InitialForm(s); + eva_create_evaluation_detail_InitialForm(s); } function eva_create_evaluation_detail_RefreshTable() { @@ -102,8 +113,7 @@ var eva_create_evaluation_detail_customValidation = function (group) { }; function eva_create_evaluation_detail_PutUpdate() { - if (!ValidateForm('eva_create_evaluation_detail', eva_create_evaluation_detail_customValidation)) - { + if (!ValidateForm('eva_create_evaluation_detail', eva_create_evaluation_detail_customValidation)) { return; } @@ -115,9 +125,9 @@ function eva_create_evaluation_detail_PutUpdate() { $("#eva_create_evaluation_detailModel").modal("hide"); AlertSuccess(result.message); eva_create_evaluation_detail_RefreshTable(); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxPutRequest(apisite + eva_create_evaluation_detail_API + data.id, data, successFunc1, AlertDanger); } // Create mode @@ -126,9 +136,9 @@ function eva_create_evaluation_detail_PutUpdate() { $("#eva_create_evaluation_detailModel").modal("hide"); AlertSuccess(result.message); eva_create_evaluation_detail_RefreshTable(); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxPostRequest(apisite + eva_create_evaluation_detail_API, data, successFunc2, AlertDanger); } } @@ -139,9 +149,9 @@ function eva_create_evaluation_detail_GoDelete(a) { $("#eva_create_evaluation_detailModel").modal("hide"); AlertSuccess(result.message); eva_create_evaluation_detail_RefreshTable(); - endLoad(); + endLoad(); }; - startLoad(); + startLoad(); AjaxDeleteRequest(apisite + eva_create_evaluation_detail_API + a, null, successFunc, AlertDanger); } } @@ -151,25 +161,27 @@ function eva_create_evaluation_detail_GoDelete(a) { var eva_create_evaluation_detailTableV; var eva_create_evaluation_detail_setupTable = function (result) { -console.log(result); -var groupColumn = 8; - tmp = '"'; + console.log(result); + var groupColumn = 9; + tmp = '"'; eva_create_evaluation_detailTableV = $('#eva_create_evaluation_detailTable').DataTable({ "processing": true, "serverSide": false, "data": result, - "select": false, + "select": false, "columns": [ -{ "data": "id" }, -{ "data": "employee_no" }, -{ "data": "employee_id_external_linkage_external_name" }, -{ "data": "position_type_text" }, -{ "data": "position_name" }, -{ "data": "position_level_text" }, -{ "data": "remark" }, -{ "data": "chief_external_linkage_external_name" }, -{ "data": "department_name" }, - + { "data": "id" }, + { "data": "order_of_data" }, + { "data": "employee_no" }, + { "data": "employee_id_external_linkage_external_name" }, + { "data": "position_type_text" }, + { "data": "position_name" }, + { "data": "position_level_text" }, + { "data": "remark" }, + { "data": "chief_external_linkage_external_name" }, + { "data": "department_name" }, + { "data": "work_period" }, + { "data": "help_org_id_external_linkage_external_name" }, ], "columnDefs": [ { @@ -179,36 +191,36 @@ var groupColumn = 8; return " "; } }, -{ "visible": false, "targets": groupColumn }], + { "visible": false, "targets": groupColumn }], "language": { "url": appsite + "/DataTables-1.10.16/thai.json" }, "paging": true, - "searching": false, - "drawCallback": function ( settings ) { + "searching": false, + "drawCallback": function (settings) { var api = this.api(); - var rows = api.rows( {page:'current'} ).nodes(); - var last=null; - - api.column(groupColumn, {page:'current'} ).data().each( function ( group, i ) { - if ( last !== group ) { - $(rows).eq( i ).before( - 'หน่วยงาน : '+group+'' + var rows = api.rows({ page: 'current' }).nodes(); + var last = null; + + api.column(groupColumn, { page: 'current' }).data().each(function (group, i) { + if (last !== group) { + $(rows).eq(i).before( + 'หน่วยงาน : ' + group + '' ); - + last = group; } - } ); + }); } }); - endLoad(); + endLoad(); }; function eva_create_evaluation_detail_InitiateDataTable(id) { - startLoad(); -$("#s_eva_create_evaluation_detail_create_evaluation_id").val(id); -var p = $.param(eva_create_evaluation_detail_GetSearchParameter()); - AjaxGetRequest(apisite + "/api/eva_create_evaluation_detail/GetListBySearch?"+p, eva_create_evaluation_detail_setupTable, AlertDanger); + startLoad(); + $("#s_eva_create_evaluation_detail_create_evaluation_id").val(id); + var p = $.param(eva_create_evaluation_detail_GetSearchParameter()); + AjaxGetRequest(apisite + "/api/eva_create_evaluation_detail/GetListBySearch?" + p, eva_create_evaluation_detail_setupTable, AlertDanger); } function eva_create_evaluation_detail_DoSearch() { @@ -216,10 +228,10 @@ function eva_create_evaluation_detail_DoSearch() { var eva_create_evaluation_detail_reload = function (result) { eva_create_evaluation_detailTableV.destroy(); eva_create_evaluation_detail_setupTable(result); - endLoad(); + endLoad(); }; - startLoad(); - AjaxGetRequest(apisite + "/api/eva_create_evaluation_detail/GetListBySearch?"+p, eva_create_evaluation_detail_reload, AlertDanger); + startLoad(); + AjaxGetRequest(apisite + "/api/eva_create_evaluation_detail/GetListBySearch?" + p, eva_create_evaluation_detail_reload, AlertDanger); } function eva_create_evaluation_detail_GetSelect(f) {