bug fixed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kamonwan taengsuk
2023-12-06 17:10:48 +07:00
parent f4b732087a
commit de4f5a0e7b
9 changed files with 87 additions and 62 deletions

View File

@@ -56,9 +56,10 @@ namespace rmutr_report.Controllers
if (project.sixteenths != null)
{
int t = 1;
string a = "กิจกรรมที่ ";
foreach (var sixteenthData in project.sixteenths)
{
string a = "กิจกรรมที่ " + t + " ";
var sum1 = sixteenthData.sixteenths2.Sum(d => d.salaya);
var sum2 = sixteenthData.sixteenths2.Sum(d => d.bophitphimuk);
var sum3 = sixteenthData.sixteenths2.Sum(d => d.pohchang);
@@ -70,26 +71,27 @@ namespace rmutr_report.Controllers
if (sixteenthData.activity_table != null)
{
sixteenthData.activity_table = a + sixteenthData.activity_table;
t++;
}
if (sixteenthData.activity_table == null)
{
sixteenthData.activity_table = null;
}
t++;
}
}
if (project.seventeenth != null)
{
int t = 1;
int ti= 1;
foreach (var v in project.seventeenth)
{
int t = 1;
string a = "กิจกรรมที่ ";
if (v.activity != null)
string a = "กิจกรรมที่ " + t + " ";
if (v.activity != null)
{
v.activity = a + v.activity;
t++;
}
if (v.activity == null)
@@ -97,11 +99,12 @@ namespace rmutr_report.Controllers
v.activity = null;
}
t++;
foreach (var vv in v.seventeenths)
{
string na = "ครั้งที่ ";
vv.the_time = na + t;
t++;
vv.the_time = na + ti;
ti++;
foreach (var detail in vv.seventeenths2)
{
string in1 = "พื้นที่ (ภายในมหาวิทยาลัย) ";
@@ -128,15 +131,14 @@ namespace rmutr_report.Controllers
if (project.eighteenth != null)
{
int t = 1;
int ti = 1;
foreach (var v in project.eighteenth)
{
int t = 1;
string a = "กิจกรรมที่ ";
string a = "กิจกรรมที่ " + t + " ";
if (v.activity != null)
{
v.activity = a + v.activity;
t++;
}
if (v.activity == null)
@@ -144,10 +146,12 @@ namespace rmutr_report.Controllers
v.activity = null;
}
t++;
foreach (var vv in v.eighteenths)
{
string na = "ครั้งที่ ";
vv.the_time = na + vv.the_time;
vv.the_time = na + ti;
ti++;
string na2 = " จำนวน ";
vv.count_day = na2 + vv.count_day + " วัน";
if (project.count_day != null)
@@ -160,22 +164,24 @@ namespace rmutr_report.Controllers
if (project.nineteenth != null)
{
int t = 1;
foreach (var v in project.nineteenth)
{
foreach (var vv in v.nineteenth_data_header)
{
int t = 1;
string a = "กิจกรรมที่ ";
string a = "กิจกรรมที่ " + t + " ";
if (vv.activity != null)
{
vv.activity = a + vv.activity;
t++;
}
if (vv.activity == null)
{
vv.activity = null;
}
t++;
}
}
}
@@ -328,20 +334,21 @@ namespace rmutr_report.Controllers
{
int no = 1;
int t = 1;
foreach (var v in project.twenty_four)
{
int t = 1;
string aa = "กิจกรรมที่ ";
string aa = "กิจกรรมที่ " + t + " ";
if (v.activity != null)
{
v.activity = aa + v.activity;
t++;
}
if (v.activity == null)
{
v.activity = null;
}
t++;
foreach (var dataDetail in v.twenty_fours)
{
string a = "ชื่อผู้รับผิดชอบ กิจกรรมที่ " + no;