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

This commit is contained in:
kamonwan taengsuk
2023-09-04 12:50:47 +07:00
parent 9988205756
commit 1f02279f23
14 changed files with 1089 additions and 135 deletions

View File

@@ -114,68 +114,104 @@ namespace rmutr_report.Controllers
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)
foreach (var v in project.twenty_one)
{
project.twenty_one = null;
if (v.activity != null || v.activity != "")
{
v.activity = v.activity;
}
foreach (var vv in v.twenty_ones)
{
// 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_quantitative != null )
{
string na = " หน่วยนับ";
vv.khrang1 = na;
}
if (vv.count_unit != null )
{
string na = "ผู้เข้าร่วมโครงการ จำนวน ";
string na2 = " หน่วยนับ";
vv.text1 = na;
vv.nuai_nap = na2;
}
if (vv.count_project != null )
{
vv.clause1 = "21.1 เชิงปริมาณ";
string na = "จำนวนครั้งที่ดำเนินโครงการ ";
string na2 = " ครั้ง";
vv.text2 = na ;
vv.khrang2 = na2 ;
}
if (vv.count_training != null )
{
string na = "จำนวนการจัดอบรมและสัมมนา ";
string na2 = " เรื่อง";
vv.text3 = na;
vv.rueang = na2;
}
if (vv.count_knowledge != null)
{
string na = "จำนวนเผยแพร่ความรู้บริการวิชาการ ";
string na2 = " ครั้ง";
vv.text4 = na;
vv.khrang3 = na2;
}
if (vv.project_start_date!=null )
{
vv.clause2 = "21.2 เชิงเวลา";
string na3 = "วัน/เดือน/ปี ที่จะดำเนินโครงการ ";
string na4 = " ถึง ";
vv.range = na4 ;
vv.text5 = na3 ;
string na5 = "โครงการแล้วเสร็จตามเวลาที่กำหนด (ร้อยละ) ";
vv.text6 = na5 ;
}
if (vv.percentage1!=null || vv.percentage2!=null)
{
vv.clause3 = "21.3 เชิงคุณภาพ";
string na = "ผู้เข้าร่วมโครงการมีความรู้ความเข้าใจเพิ่มขึ้น (ร้อยละ) ";
string na1 = "ความพึงพอใจของผู้เข้ารับบริการในกระบวนการให้บริการ (ร้อยละ) ";
vv.text7 = na;
vv.text8 = na1;
vv.text9 = "ผู้เข้าร่วมโครงการสามารถนำความรู้ที่ได้รับไปบูรณาการอย่างไรบ้าง";
vv.text10 = "รายละเอียด";
}
if (vv.expenses!=null)
{
vv.clause4 = "21.4 เชิงค่าใช้จ่าย";
vv.bath = " บาท";
}
}
}
}
}
if (project.twenty_four != null)
{
@@ -244,7 +280,7 @@ namespace rmutr_report.Controllers
var _project = new List<project_principle_rationale>() { project };
Report report = new Report();
report.Load(_setting.report_path + "project_principle_rationale.frx");
report.Load(_setting.report_path + "project_principle_rationale_1.frx");
report.RegisterData(_project, "project_principle_rationale");
report.Prepare();