edit budget summary
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user