ปรับปรุง การอนุมัติแบบข้อตกลง ของ ผอ
This commit is contained in:
@@ -280,6 +280,10 @@ namespace TodoAPI2.Controllers
|
||||
if (p1.chief_fullname == p1.supervisor2_fullname)
|
||||
{
|
||||
url = $"{mainurl}{reportsite}/rep_eva_x{k}A.{model.filetype}?{MyHelper.GetParameterForJasperReport(p1)}&j_username={username}&j_password={password}";
|
||||
if (!string.IsNullOrEmpty(p1.supervisor3A_fullname))
|
||||
{
|
||||
url = $"{mainurl}{reportsite}/rep_eva_x{k}AC.{model.filetype}?{MyHelper.GetParameterForJasperReport(p1)}&j_username={username}&j_password={password}";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -401,8 +405,8 @@ namespace TodoAPI2.Controllers
|
||||
where n.performance_plan_id == x2.id
|
||||
select n.start_date).Min();
|
||||
var end = (from n in context.eva_performance_plan_detail
|
||||
where n.performance_plan_id == x2.id
|
||||
select n.end_date).Min();
|
||||
where n.performance_plan_id == x2.id
|
||||
select n.end_date).Max();
|
||||
var text = MyHelper.GetDateStringForReport(start) + " ถึง " + MyHelper.GetDateStringForReport(end);
|
||||
if(x2.theTime == 1)
|
||||
{
|
||||
@@ -414,6 +418,11 @@ namespace TodoAPI2.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(i.round2_text))
|
||||
{
|
||||
i.round2_text = $"1 เมษายน {p.fiscal_year} ถึง 30 กันยายน {p.fiscal_year}";
|
||||
}
|
||||
|
||||
var detail = (from x in context.eva_create_evaluation_detail
|
||||
where x.id == detail_id
|
||||
select x).FirstOrDefault();
|
||||
|
||||
Reference in New Issue
Block a user