edit budget summary

This commit is contained in:
kamonwan taengsuk
2023-05-02 18:52:37 +07:00
parent fd6d24a552
commit ea28d5440a
3 changed files with 1298 additions and 249 deletions

View File

@@ -145,6 +145,66 @@ namespace rmutr_report.Controllers
}
}
if (budget_summary_reports.durable_articles_1 != null)
{
foreach (var bDetail in budget_summary_reports.durable_articles_1)
{
if (bDetail.color == 1)
{
budget_summary_reports.list = bDetail.list;
budget_summary_reports.total_amount = bDetail.total_amount;
}
// if (bDetail.color == 2)
// {
// budget_summary_reports.list = bDetail.list;
// budget_summary_reports.total_amount = bDetail.total_amount;
// }
// foreach (var bDetail2 in bDetail.durable_articles_2)
// {
// if (bDetail2.color == 3)
// {
// budget_summary_reports.list = bDetail2.list;
// budget_summary_reports.total_amount = bDetail2.total_amount;
// }
// foreach (var bDetail3 in bDetail2.durable_articles_3)
// {
// if (bDetail3.color == 4)
// {
// budget_summary_reports.list = bDetail3.list;
// budget_summary_reports.total_amount = bDetail3.total_amount;
// }
// foreach (var bDetail4 in bDetail3.durable_articles_4)
// {
// if (bDetail4.color == 5)
// {
// budget_summary_reports.list = bDetail4.list;
// budget_summary_reports.total_amount = bDetail4.total_amount;
// }
// }
// }
// }
}
}
if (budget_summary_reports.building_1 != null)
{
foreach (var bDetail in budget_summary_reports.building_1)
{
if (bDetail.color == 1)
{
budget_summary_reports.list1 = bDetail.list;
budget_summary_reports.total_amount1 = bDetail.total_amount;
}
// if (bDetail.color == 2)
// {
// budget_summary_reports.list1 = bDetail.list;
// budget_summary_reports.total_amount1 = bDetail.total_amount;
// }
}
}
Report report = new Report();
report.Load(_setting.report_path + "budget_summary_report.frx");
report.RegisterData(_budget_summary_report, "budget_summary_report");