This commit is contained in:
@@ -46,22 +46,24 @@ namespace rmutr_report.Controllers
|
||||
// }
|
||||
if (project != null)
|
||||
{
|
||||
// var total = project.activity.Count;
|
||||
// if (project.activity != null)
|
||||
// {
|
||||
// foreach (var v in project.activity)
|
||||
// {
|
||||
// if (v.activity != null)
|
||||
// {
|
||||
// //var total = project.activity.Select(r => r.count).Sum(t => t.Value);
|
||||
// project.together_with = "ประกอบด้วยกิจกรรมหรือโครงการย่อย " + total + " โครงการดังนี้คือ";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// project.together_with = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
if (project.activity.Any())
|
||||
{
|
||||
if (project.activity == null)
|
||||
{
|
||||
foreach (var detail in project.activity)
|
||||
{
|
||||
detail.activity = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
project.activity.Add(new activity_data()
|
||||
{
|
||||
activity = ""
|
||||
});
|
||||
}
|
||||
|
||||
if (project.ninth != null)
|
||||
{
|
||||
@@ -94,6 +96,7 @@ namespace rmutr_report.Controllers
|
||||
detail = ""
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +133,7 @@ namespace rmutr_report.Controllers
|
||||
if (project.seventeenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
int ti= 1;
|
||||
//int ti= 1;
|
||||
foreach (var v in project.seventeenth)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
@@ -148,8 +151,8 @@ namespace rmutr_report.Controllers
|
||||
foreach (var vv in v.seventeenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + ti;
|
||||
ti++;
|
||||
vv.the_time = na + vv.the_time;
|
||||
//ti++;
|
||||
foreach (var detail in vv.seventeenths2)
|
||||
{
|
||||
string in1 = "พื้นที่ (ภายในมหาวิทยาลัย) ";
|
||||
@@ -177,7 +180,7 @@ namespace rmutr_report.Controllers
|
||||
if (project.eighteenth != null)
|
||||
{
|
||||
int t = 1;
|
||||
int ti = 1;
|
||||
//int ti = 1;
|
||||
foreach (var v in project.eighteenth)
|
||||
{
|
||||
string a = "กิจกรรมที่ " + t + " ";
|
||||
@@ -195,8 +198,8 @@ namespace rmutr_report.Controllers
|
||||
foreach (var vv in v.eighteenths)
|
||||
{
|
||||
string na = "ครั้งที่ ";
|
||||
vv.the_time = na + ti;
|
||||
ti++;
|
||||
vv.the_time = na + vv.the_time;
|
||||
//ti++;
|
||||
string na2 = " จำนวน ";
|
||||
vv.count_day = na2 + vv.count_day + " วัน";
|
||||
if (project.count_day != null)
|
||||
|
||||
Reference in New Issue
Block a user