update ง 5

This commit is contained in:
kamonwan taengsuk
2023-02-20 12:29:38 +07:00
parent f8e4248d7f
commit 6b821f1615
3 changed files with 515 additions and 85 deletions

View File

@@ -65,34 +65,74 @@ namespace rmutr_report.Controllers
vv.count_day = na2 + vv.count_day + " วัน";
}
}
// foreach (var a in project.seventeenth)
// {
// foreach (var aa in a.seventeenths)
// {
// foreach (var a2 in aa.seventeenths2)
// {
// if (aa.type == "1")
// {
// a2.internal_external = "ภายในมหาวิทยาลัย";
// a2.area_province = "พื้นที่" + a2.area_province;
// a2.location = "ระบุสถานที่" + a2.location;
// }
// if (aa.type == "2")
// {
// a2.internal_external = "ภายนอกมหาวิทยาลัย";
// a2.area_province = "จังหวัด" + a2.area_province;
// a2.location = "ระบุสถานที่" + a2.location;
// }
// if (aa.type == "3")
// {
// a2.internal_external = "ภายนอกมหาวิทยาลัย";
// a2.area_province = "จังหวัด" + a2.area_province;
// a2.location = "ระบุสถานที่" + a2.location;
// }
// }
// }
// }
if (project.twenty_one != null)
{
// foreach (var vv in project.twenty_one)
// {
// if (vv.activity != null || vv.activity!= "")
// {
// vv.activity = vv.activity;
// }
// if (vv.clause1 != null || vv.clause1!= "")
// {
// vv.clause1 = vv.clause1;
// }
// if (vv.clause2 != null || vv.clause2!= "")
// {
// vv.clause2 = vv.clause2;
// }
// if (vv.clause3 != null || vv.clause3!= "")
// {
// vv.clause3 = vv.clause3;
// }
// if (vv.clause4 != null || vv.clause4!= "")
// {
// vv.clause4 = vv.clause4;
// }
// if (vv.count_unit != null || vv.count_unit != "")
// {
// string na = "ผู้เข้าร่วมโครงการ จำนวน ";
// string na2 = " หน่วยนับ";
// project.text1 = na + vv.count_unit + na2;
// }
//
// if (vv.count_project != null || vv.count_project != "")
// {
// string na = "จำนวนครั้งที่ดำเนินโครงการ ";
// string na2 = " ครั้ง";
// project.text2 = na + vv.count_project + na2;
// }
//
// if (vv.count_training != null || vv.count_training != "")
// {
// string na = "จำนวนการจัดอบรมและสัมมนา ";
// string na2 = " เรื่อง";
// project.text3 = na + vv.count_training + na2;
// }
//
// if (vv.count_knowledge != null || vv.count_knowledge != "")
// {
// string na = "จำนวนเผยแพร่ความรู้บริการวิชาการ ";
// string na2 = " ครั้ง";
// project.text4 = na + vv.count_knowledge + na2;
// }
// string na3 = "วัน/เดือน/ปี ที่จะดำเนินโครงการ ";
// string na4 = " ถึง ";
// project.text5 = na3 + vv.project_start_date + na4 + vv.project_end_date;
// string na5 = "โครงการแล้วเสร็จตามเวลาที่กำหนด (ร้อยละ) ";
// project.text6 = na5 + vv.percentage_finish;
//
// }
if (project.twenty_one == null)
{
project.twenty_one = null;
}
}
var _project = new List<project_principle_rationale>() {project};
Report report = new Report();