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");
|
||||
|
||||
@@ -16,18 +16,30 @@ namespace rmutr_report.Models
|
||||
public string product { get; set; }
|
||||
public string set_request_year { get; set; }
|
||||
public List<group_headers2> group_header { get; set; }
|
||||
|
||||
public string durable_articles_year { get; set; }
|
||||
|
||||
//public string durable_articles_product { get; set; }
|
||||
public decimal? durable_articles_budget { get; set; }
|
||||
public List<durable_articles_detail>durable_articles{ get; set; }
|
||||
|
||||
public List<durable_articles_detail> durable_articles_1 { get; set; }
|
||||
//public List<receives_data> receive_data { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
//public List<durable_articles_headers> durable_articles_header1 { get; set; }
|
||||
public string building_year { get; set; }
|
||||
|
||||
//public string building_product { get; set; }
|
||||
public decimal? building_budget { get; set; }
|
||||
|
||||
//public List<building_headers1> building_header_1 { get; set; }
|
||||
public List<building_headers2_detail>building{ get; set; }
|
||||
public List<building_headers> building_1 { get; set; }
|
||||
public string list1 { get; set; }
|
||||
public decimal? total_amount1 { get; set; }
|
||||
public string research_support_year { get; set; }
|
||||
|
||||
public decimal? research_support_budget { get; set; }
|
||||
|
||||
//public string research_support_product { get; set; }
|
||||
public List<operating_expenses_details> research_support { get; set; }
|
||||
public string subsidy_service_year { get; set; }
|
||||
@@ -47,18 +59,25 @@ namespace rmutr_report.Models
|
||||
public List<subsidy_science_headers_detail> thailand { get; set; }
|
||||
public string subsidy_budget_project_year { get; set; }
|
||||
public decimal? subsidy_budget_project_budget { get; set; }
|
||||
|
||||
public List<subsidy_service_headers_detail> subsidy_budget_project { get; set; }
|
||||
|
||||
// public string integrated_plan_name { get; set; }
|
||||
public string integrated_plan_year { get; set; }
|
||||
|
||||
public decimal? integrated_plan_budget { get; set; }
|
||||
|
||||
//public List<subsidy_science_headers> integrated_plan_header { get; set; }
|
||||
//public string strategic_plan_name { get; set; }
|
||||
public string strategic_plan_year { get; set; }
|
||||
|
||||
public decimal? strategic_plan_budget { get; set; }
|
||||
|
||||
//public List<subsidy_science_headers> strategic_plan_header { get; set; }
|
||||
public List<subsidy_science_headers_detail> integrated_plan { get; set; }
|
||||
public List<subsidy_science_headers_detail> strategic_plan { get; set; }
|
||||
}
|
||||
|
||||
public class group_headers2
|
||||
{
|
||||
public string list_1 { get; set; }
|
||||
@@ -69,7 +88,6 @@ namespace rmutr_report.Models
|
||||
public decimal? total_amount_1 { get; set; }
|
||||
public decimal? total_amount_2 { get; set; }
|
||||
public List<expenditure_budget_proposal2> header { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class expenditure_budget_proposal2
|
||||
@@ -78,8 +96,6 @@ namespace rmutr_report.Models
|
||||
public string header { get; set; }
|
||||
public decimal? budget_amount { get; set; }
|
||||
public List<expenditure_budget_proposals2> data_proposals { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class expenditure_budget_proposals2
|
||||
@@ -95,8 +111,6 @@ namespace rmutr_report.Models
|
||||
public string quantity_unit { get; set; }
|
||||
public decimal? budget_amount { get; set; }
|
||||
public List<expenditure_budget_proposals3> data_sub_proposals { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class expenditure_budget_proposals3
|
||||
@@ -112,6 +126,7 @@ namespace rmutr_report.Models
|
||||
public string quantity_unit { get; set; }
|
||||
public decimal? budget_amount { get; set; }
|
||||
}
|
||||
|
||||
public class budget_summary_report_detail
|
||||
{
|
||||
public string product { get; set; }
|
||||
@@ -121,7 +136,6 @@ namespace rmutr_report.Models
|
||||
public decimal? budget_4 { get; set; }
|
||||
public decimal? budget_5 { get; set; }
|
||||
public decimal? total_budget { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class operating_expenses_details
|
||||
@@ -151,12 +165,47 @@ namespace rmutr_report.Models
|
||||
// public List<durable_articles_detail>durable_articles{ get; set; }
|
||||
//
|
||||
// }
|
||||
// public class receives_data
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// }
|
||||
|
||||
public class durable_articles_detail
|
||||
{
|
||||
public string color { get; set; }
|
||||
public string rowno { get; set; }
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<durable_articles_detail1> durable_articles_2 { get; set; }
|
||||
}
|
||||
|
||||
public class durable_articles_detail1
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<durable_articles_detail2> durable_articles_3 { get; set; }
|
||||
}
|
||||
|
||||
public class durable_articles_detail2
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<durable_articles_detail3> durable_articles_4 { get; set; }
|
||||
}
|
||||
|
||||
public class durable_articles_detail3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<durable_articles_detail4> durable_articles_detail { get; set; }
|
||||
}
|
||||
|
||||
public class durable_articles_detail4
|
||||
{
|
||||
public string list { get; set; }
|
||||
public string unit { get; set; }
|
||||
public string unit_amount { get; set; }
|
||||
@@ -170,6 +219,7 @@ namespace rmutr_report.Models
|
||||
public string type_2 { get; set; }
|
||||
public string type_3 { get; set; }
|
||||
public string remark { get; set; }
|
||||
//public List<durable_articles_detail5> durable_articles_detail { get; set; }
|
||||
}
|
||||
|
||||
// public class building_headers1
|
||||
@@ -191,9 +241,78 @@ namespace rmutr_report.Models
|
||||
//
|
||||
// }
|
||||
|
||||
public class building_headers2_detail
|
||||
public class building_headers
|
||||
{
|
||||
public string color { get; set; }
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<building_headers2>building_2{ get; set; }
|
||||
|
||||
}
|
||||
public class building_headers2{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<building_headers3>building_3{ get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class building_headers3
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
//public List<building_headers4>building_4{ get; set; }
|
||||
public List<building_headers4_detail1>data_1{ get; set; }
|
||||
public List<building_headers4_detail2>data_2{ get; set; }
|
||||
public List<building_headers4_detail3>data_3{ get; set; }
|
||||
}
|
||||
|
||||
// public class building_headers4
|
||||
// {
|
||||
// public int? color { get; set; }
|
||||
// public string list { get; set; }
|
||||
// public decimal? total_amount { get; set; }
|
||||
// public List<building_headers4_detail1>data_1{ get; set; }
|
||||
// public List<building_headers4_detail2>data_2{ get; set; }
|
||||
// public List<building_headers4_detail3>data_3{ get; set; }
|
||||
//
|
||||
// }
|
||||
|
||||
public class building_headers4_detail1
|
||||
{
|
||||
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<data_1_details>data_1_detail { get; set; }
|
||||
}
|
||||
|
||||
public class data_1_details
|
||||
{
|
||||
|
||||
public string rowno { get; set; }
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class building_headers4_detail2
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<data_1_details>data_2_detail { get; set; }
|
||||
}
|
||||
|
||||
public class building_headers4_detail3
|
||||
{
|
||||
public string list { get; set; }
|
||||
public decimal? total_amount { get; set; }
|
||||
public List<data_3_details>data_3_detail { get; set; }
|
||||
}
|
||||
|
||||
public class data_3_details
|
||||
{
|
||||
public int? color { get; set; }
|
||||
public string rowno { get; set; }
|
||||
public string list { get; set; }
|
||||
public string unit { get; set; }
|
||||
@@ -203,8 +322,8 @@ namespace rmutr_report.Models
|
||||
public string boq { get; set; }
|
||||
public string pic { get; set; }
|
||||
public string remark { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class subsidy_service_headers_detail
|
||||
{
|
||||
public string color { get; set; }
|
||||
@@ -218,7 +337,6 @@ namespace rmutr_report.Models
|
||||
public decimal? amount_6 { get; set; }
|
||||
public decimal? amount_7 { get; set; }
|
||||
public string remark { get; set; }
|
||||
|
||||
}
|
||||
|
||||
// public class subsidy_science_headers
|
||||
@@ -239,6 +357,5 @@ namespace rmutr_report.Models
|
||||
public decimal? unit_amount { get; set; }
|
||||
public decimal? amount { get; set; }
|
||||
public string remark { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user