แก้ไขตาม feedback ในห้อง
This commit is contained in:
@@ -288,6 +288,9 @@ namespace TodoAPI2.Controllers
|
||||
i.employee_position_type = p.employee_position_type;
|
||||
i.employee_position_level = p.employee_position_level;
|
||||
i.employee_org = p.employee_org;
|
||||
|
||||
if (i.employee_org != null) i.employee_org = i.employee_org.Replace("แผนก", "");
|
||||
|
||||
i.employee_position = p.employee_position;
|
||||
if (!string.IsNullOrEmpty(p.employee_profile_picture))
|
||||
{
|
||||
@@ -315,6 +318,9 @@ namespace TodoAPI2.Controllers
|
||||
i.supervisor2A_fullname = p.supervisor2A_fullname;
|
||||
i.supervisor2A_position = p.supervisor2A_position;
|
||||
i.main_dept = p.employee_main_dept;
|
||||
|
||||
if (i.main_dept != null) i.main_dept = i.main_dept.Replace("กอง","");
|
||||
|
||||
i.leave_period = MyHelper.GetDateStringForReport(p.start_date) + " ถึง " + MyHelper.GetDateStringForReport(p.end_date);
|
||||
i.selected_round = p.selected_round;
|
||||
|
||||
@@ -360,6 +366,8 @@ namespace TodoAPI2.Controllers
|
||||
i.w1 = p.create_evaluation_score1;
|
||||
i.w2 = p.create_evaluation_score2;
|
||||
|
||||
if(p.start_date.HasValue && p.end_date.HasValue)
|
||||
{
|
||||
var q = emp.GetLeaveOfEmployee(p.employee_id.Value, p.start_date, p.end_date);
|
||||
i.sum_day_sick_leave = q.sum_day_sick_leave;
|
||||
i.count_sick_leave = q.count_sick_leave;
|
||||
@@ -371,6 +379,12 @@ namespace TodoAPI2.Controllers
|
||||
i.count_absence_tad_processing_time_results = q.count_absence_tad_processing_time_results;
|
||||
i.sum_day_sick_personal_leave = q.sum_day_sick_personal_leave;
|
||||
i.count_sick_personal_leave = q.count_sick_personal_leave;
|
||||
}
|
||||
|
||||
i.txt_status_self_a_click_date = MyHelper.GetDateStringForReport(p.status_self_a_click_date);
|
||||
if (i.txt_status_self_a_click_date == "") i.txt_status_self_a_click_date = "..................................";
|
||||
i.txt_status_chief_a_click_date = MyHelper.GetDateStringForReport(p.status_chief_a_click_date);
|
||||
if (i.txt_status_chief_a_click_date == "") i.txt_status_chief_a_click_date = "..................................";
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
@@ -180,6 +180,9 @@ namespace TodoAPI2.Models
|
||||
start_date = start_date,
|
||||
end_date = end_date,
|
||||
|
||||
status_self_a_click_date = m_eva_create_evaluation_detail_process.status_self_a_click_date,
|
||||
status_chief_a_click_date = m_eva_create_evaluation_detail_process.status_chief_a_click_date,
|
||||
|
||||
isActive = m_eva_create_evaluation_detail_process.isActive,
|
||||
Created = m_eva_create_evaluation_detail_process.created,
|
||||
Updated = m_eva_create_evaluation_detail_process.updated
|
||||
|
||||
@@ -81,6 +81,9 @@ namespace TodoAPI2.Models
|
||||
|
||||
public DateTime? status_self_click_date { get; set; }
|
||||
public DateTime? status_chief_click_date { get; set; }
|
||||
|
||||
public DateTime? status_self_a_click_date { get; set; }
|
||||
public DateTime? status_chief_a_click_date { get; set; }
|
||||
public DateTime? status_supervisor_click_date { get; set; }
|
||||
public DateTime? status_supervisor1A_click_date { get; set; }
|
||||
public DateTime? status_supervisor2A_click_date { get; set; }
|
||||
@@ -106,6 +109,9 @@ namespace TodoAPI2.Models
|
||||
}
|
||||
return " ";
|
||||
}
|
||||
|
||||
public string txt_status_self_a_click_date { get { return MyHelper.GetDateStringForReport(status_self_a_click_date); } }
|
||||
public string txt_status_chief_a_click_date { get { return MyHelper.GetDateStringForReport(status_chief_a_click_date); } }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,5 +26,20 @@ namespace TodoAPI2.Models
|
||||
|
||||
public int? create_evaluation_detail_id_eva_create_evaluation_detail_create_evaluation_id { get; set; }
|
||||
|
||||
public string mission_detail_with_enter { get { return replace_with_enter(mission_detail); } }
|
||||
|
||||
public string target_with_enter { get { return replace_with_enter(target); } }
|
||||
|
||||
public string indicators_with_enter { get { return replace_with_enter(indicators); } }
|
||||
|
||||
private string replace_with_enter(string data)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(data))
|
||||
{
|
||||
return data.Replace("\n", "<br/>");
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -56,6 +56,9 @@ namespace TodoAPI2.Models
|
||||
public decimal? count_absence_tad_processing_time_results { get; set; }
|
||||
public decimal? sum_day_sick_personal_leave { get; set; }
|
||||
public decimal? count_sick_personal_leave { get; set; }
|
||||
|
||||
public string txt_status_self_a_click_date { get; set; }
|
||||
public string txt_status_chief_a_click_date { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,19 +31,19 @@
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_employee_id" for="eva_create_evaluation_employee_id">ผู้ประเมินสูงสุด</label>
|
||||
<select class="form-control" id="eva_create_evaluation_employee_id" iLabel="ผู้ประเมินสูงสุด" iRequire="true" iGroup="eva_create_evaluation"></select>
|
||||
<select class="form-control" id="eva_create_evaluation_employee_id" iLabel="ผู้ประเมินสูงสุด" iRequire="false" iGroup="eva_create_evaluation"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_supervisor1_id" for="eva_create_evaluation_supervisor1_id">ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง </label>
|
||||
<select class="form-control" id="eva_create_evaluation_supervisor1_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง " iRequire="true" iGroup="eva_create_evaluation"></select>
|
||||
<select class="form-control" id="eva_create_evaluation_supervisor1_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง " iRequire="false" iGroup="eva_create_evaluation"></select>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_supervisor2_id" for="eva_create_evaluation_supervisor2_id">ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)</label>
|
||||
<select class="form-control" id="eva_create_evaluation_supervisor2_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)" iRequire="true" iGroup="eva_create_evaluation"></select>
|
||||
<select class="form-control" id="eva_create_evaluation_supervisor2_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)" iRequire="false" iGroup="eva_create_evaluation"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -104,19 +104,19 @@
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_employee_id" for="eva_create_evaluation_employee_id">ผู้ประเมินสูงสุด</label>
|
||||
<select class="form-control" id="eva_create_evaluation_employee_id" iLabel="ผู้ประเมินสูงสุด" iRequire="true" iGroup="eva_create_evaluation"></select>
|
||||
<select class="form-control" id="eva_create_evaluation_employee_id" iLabel="ผู้ประเมินสูงสุด" iRequire="false" iGroup="eva_create_evaluation"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='row'>
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_supervisor1_id" for="eva_create_evaluation_supervisor1_id">ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง </label>
|
||||
<select class="form-control" id="eva_create_evaluation_supervisor1_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง " iRequire="true" iGroup="eva_create_evaluation"></select>
|
||||
<select class="form-control" id="eva_create_evaluation_supervisor1_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง " iRequire="false" iGroup="eva_create_evaluation"></select>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label id="lab_eva_create_evaluation_supervisor2_id" for="eva_create_evaluation_supervisor2_id">ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)</label>
|
||||
<select class="form-control" id="eva_create_evaluation_supervisor2_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)" iRequire="true" iGroup="eva_create_evaluation"></select>
|
||||
<select class="form-control" id="eva_create_evaluation_supervisor2_id" iLabel="ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง (สูงสุด)" iRequire="false" iGroup="eva_create_evaluation"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<li class="breadcrumb-item "><a href="@MyHelper.GetConfig(Configuration, "SiteInformation:mainsite")">หน้าแรก</a></li>
|
||||
<li class="breadcrumb-item "><a href="@MyHelper.GetConfig(Configuration, "SiteInformation:mainsite")@MyHelper.GetConfig(Configuration, "SiteInformation:appsite")">@Environment.GetEnvironmentVariable("SiteInformation_modulename")</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
แบบประเมินผลสัมฤทธิ์ของงานสมรรถนะ
|
||||
แบบประเมินผลสัมฤทธิ์ของงาน/สมรรถนะ
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<section class="wrapper">
|
||||
<div class="title">
|
||||
<div class="line"></div> แบบประเมินผลสัมฤทธิ์ของงานสมรรถนะ
|
||||
<div class="line"></div> แบบประเมินผลสัมฤทธิ์ของงาน/สมรรถนะ
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div class="row">
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
<ol class="breadcrumb" style="">
|
||||
<li class="breadcrumb-item "><a href="@MyHelper.GetConfig(Configuration, "SiteInformation:mainsite")">หน้าแรก</a></li>
|
||||
<li class="breadcrumb-item "><a href="@MyHelper.GetConfig(Configuration, "SiteInformation:mainsite")@MyHelper.GetConfig(Configuration, "SiteInformation:appsite")">@Environment.GetEnvironmentVariable("SiteInformation_modulename")</a></li>
|
||||
<li class="breadcrumb-item active">แบบประเมินผลสัมฤทธิ์ของงานสมรรถนะ</li>
|
||||
<li class="breadcrumb-item active">แบบประเมินผลสัมฤทธิ์ของงาน/สมรรถนะ</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
@@ -214,7 +214,7 @@
|
||||
|
||||
|
||||
<section class="wrapper">
|
||||
<div class="title col-md-12"><div class="line"></div>แบบประเมินผลสัมฤทธิ์ของงานสมรรถนะ</div>
|
||||
<div class="title col-md-12"><div class="line"></div>แบบประเมินผลสัมฤทธิ์ของงาน/สมรรถนะ</div>
|
||||
|
||||
<section class="card no-border">
|
||||
|
||||
@@ -368,7 +368,7 @@
|
||||
<br />
|
||||
|
||||
<section class="wrapper">
|
||||
<div class="title col-md-12"><div class="line"></div>ส่งข้อตกลงการประเมิน <span id="status" style="color:red;"></span></div>
|
||||
<div class="title col-md-12"><div class="line"></div>ส่งแบบประเมิน <span id="status" style="color:red;"></span></div>
|
||||
|
||||
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_status_id" />
|
||||
<input class="form-control" type="hidden" id="eva_create_evaluation_detail_status_create_evaluation_id" />
|
||||
|
||||
@@ -151,6 +151,7 @@ function eva_evaluation_operating_agreement_GoDelete(a) {
|
||||
var eva_evaluation_operating_agreementTableV;
|
||||
|
||||
var eva_evaluation_operating_agreement_setupTable = function (result) {
|
||||
console.log(result);
|
||||
tmp = '"';
|
||||
eva_evaluation_operating_agreementTableV = $('#eva_evaluation_operating_agreementTable').DataTable({
|
||||
"processing": true,
|
||||
@@ -163,9 +164,9 @@ var eva_evaluation_operating_agreement_setupTable = function (result) {
|
||||
//{ "data": "" },
|
||||
{ "data": "id" },
|
||||
{ "data": "mission_no" },
|
||||
{ "data": "mission_detail" },
|
||||
{ "data": "target" },
|
||||
{ "data": "indicators" },
|
||||
{ "data": "mission_detail_with_enter" },
|
||||
{ "data": "target_with_enter" },
|
||||
{ "data": "indicators_with_enter" },
|
||||
],
|
||||
"columnDefs": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user