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 report = new Report();
|
||||||
report.Load(_setting.report_path + "budget_summary_report.frx");
|
report.Load(_setting.report_path + "budget_summary_report.frx");
|
||||||
report.RegisterData(_budget_summary_report, "budget_summary_report");
|
report.RegisterData(_budget_summary_report, "budget_summary_report");
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace rmutr_report.Models
|
|||||||
{
|
{
|
||||||
public string budget_year { get; set; }
|
public string budget_year { get; set; }
|
||||||
public string agency_name_th { get; set; }
|
public string agency_name_th { get; set; }
|
||||||
public List<budget_summary_report_detail>summary{ get; set; }
|
public List<budget_summary_report_detail> summary { get; set; }
|
||||||
public decimal? budget_1 { get; set; }
|
public decimal? budget_1 { get; set; }
|
||||||
public decimal? budget_2 { get; set; }
|
public decimal? budget_2 { get; set; }
|
||||||
public decimal? budget_3 { get; set; }
|
public decimal? budget_3 { get; set; }
|
||||||
@@ -16,49 +16,68 @@ namespace rmutr_report.Models
|
|||||||
public string product { get; set; }
|
public string product { get; set; }
|
||||||
public string set_request_year { get; set; }
|
public string set_request_year { get; set; }
|
||||||
public List<group_headers2> group_header { get; set; }
|
public List<group_headers2> group_header { get; set; }
|
||||||
|
|
||||||
public string durable_articles_year { get; set; }
|
public string durable_articles_year { get; set; }
|
||||||
|
|
||||||
//public string durable_articles_product { get; set; }
|
//public string durable_articles_product { get; set; }
|
||||||
public decimal? durable_articles_budget { 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 List<durable_articles_headers> durable_articles_header1 { get; set; }
|
||||||
public string building_year { get; set; }
|
public string building_year { get; set; }
|
||||||
|
|
||||||
//public string building_product { get; set; }
|
//public string building_product { get; set; }
|
||||||
public decimal? building_budget{ get; set; }
|
public decimal? building_budget { get; set; }
|
||||||
|
|
||||||
//public List<building_headers1> building_header_1 { 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 string research_support_year { get; set; }
|
||||||
public decimal? research_support_budget{ get; set; }
|
|
||||||
|
public decimal? research_support_budget { get; set; }
|
||||||
|
|
||||||
//public string research_support_product { get; set; }
|
//public string research_support_product { get; set; }
|
||||||
public List<operating_expenses_details>research_support{ get; set; }
|
public List<operating_expenses_details> research_support { get; set; }
|
||||||
public string subsidy_service_year { get; set; }
|
public string subsidy_service_year { get; set; }
|
||||||
public decimal? subsidy_service_budget{ get; set; }
|
public decimal? subsidy_service_budget { get; set; }
|
||||||
public List<subsidy_service_headers_detail>subsidy_service{ get; set; }
|
public List<subsidy_service_headers_detail> subsidy_service { get; set; }
|
||||||
public string subsidy_science_year { get; set; }
|
public string subsidy_science_year { get; set; }
|
||||||
public decimal? subsidy_science_budget { get; set; }
|
public decimal? subsidy_science_budget { get; set; }
|
||||||
public List<subsidy_science_headers_detail>subsidy_science{ get; set; }
|
public List<subsidy_science_headers_detail> subsidy_science { get; set; }
|
||||||
public string subsidy_society_year { get; set; }
|
public string subsidy_society_year { get; set; }
|
||||||
public decimal? subsidy_society_budget { get; set; }
|
public decimal? subsidy_society_budget { get; set; }
|
||||||
public List<subsidy_science_headers_detail>subsidy_society{ get; set; }
|
public List<subsidy_science_headers_detail> subsidy_society { get; set; }
|
||||||
public string subsidy_arts_culture_year { get; set; }
|
public string subsidy_arts_culture_year { get; set; }
|
||||||
public decimal? subsidy_arts_culture_budget { get; set; }
|
public decimal? subsidy_arts_culture_budget { get; set; }
|
||||||
public List<subsidy_service_headers_detail>subsidy_arts_culture{ get; set; }
|
public List<subsidy_service_headers_detail> subsidy_arts_culture { get; set; }
|
||||||
public string thailand_year { get; set; }
|
public string thailand_year { get; set; }
|
||||||
public decimal? thailand_budget { get; set; }
|
public decimal? thailand_budget { get; set; }
|
||||||
public List<subsidy_science_headers_detail>thailand{ get; set; }
|
public List<subsidy_science_headers_detail> thailand { get; set; }
|
||||||
public string subsidy_budget_project_year { get; set; }
|
public string subsidy_budget_project_year { get; set; }
|
||||||
public decimal? subsidy_budget_project_budget { 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 List<subsidy_service_headers_detail> subsidy_budget_project { get; set; }
|
||||||
public string integrated_plan_year { get; set; }
|
|
||||||
public decimal? integrated_plan_budget { 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 List<subsidy_science_headers> integrated_plan_header { get; set; }
|
||||||
//public string strategic_plan_name { get; set; }
|
//public string strategic_plan_name { get; set; }
|
||||||
public string strategic_plan_year { get; set; }
|
public string strategic_plan_year { get; set; }
|
||||||
public decimal? strategic_plan_budget { get; set; }
|
|
||||||
|
public decimal? strategic_plan_budget { get; set; }
|
||||||
|
|
||||||
//public List<subsidy_science_headers> strategic_plan_header { 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> integrated_plan { get; set; }
|
||||||
public List<subsidy_science_headers_detail>strategic_plan{ get; set; }
|
public List<subsidy_science_headers_detail> strategic_plan { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class group_headers2
|
public class group_headers2
|
||||||
{
|
{
|
||||||
public string list_1 { get; set; }
|
public string list_1 { get; set; }
|
||||||
@@ -67,9 +86,8 @@ namespace rmutr_report.Models
|
|||||||
public string list_3 { get; set; }
|
public string list_3 { get; set; }
|
||||||
public decimal? budget_amount { get; set; }
|
public decimal? budget_amount { get; set; }
|
||||||
public decimal? total_amount_1 { get; set; }
|
public decimal? total_amount_1 { get; set; }
|
||||||
public decimal? total_amount_2 { get; set; }
|
public decimal? total_amount_2 { get; set; }
|
||||||
public List<expenditure_budget_proposal2> header { get; set; }
|
public List<expenditure_budget_proposal2> header { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class expenditure_budget_proposal2
|
public class expenditure_budget_proposal2
|
||||||
@@ -78,8 +96,6 @@ namespace rmutr_report.Models
|
|||||||
public string header { get; set; }
|
public string header { get; set; }
|
||||||
public decimal? budget_amount { get; set; }
|
public decimal? budget_amount { get; set; }
|
||||||
public List<expenditure_budget_proposals2> data_proposals { get; set; }
|
public List<expenditure_budget_proposals2> data_proposals { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class expenditure_budget_proposals2
|
public class expenditure_budget_proposals2
|
||||||
@@ -95,8 +111,6 @@ namespace rmutr_report.Models
|
|||||||
public string quantity_unit { get; set; }
|
public string quantity_unit { get; set; }
|
||||||
public decimal? budget_amount { get; set; }
|
public decimal? budget_amount { get; set; }
|
||||||
public List<expenditure_budget_proposals3> data_sub_proposals { get; set; }
|
public List<expenditure_budget_proposals3> data_sub_proposals { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class expenditure_budget_proposals3
|
public class expenditure_budget_proposals3
|
||||||
@@ -112,6 +126,7 @@ namespace rmutr_report.Models
|
|||||||
public string quantity_unit { get; set; }
|
public string quantity_unit { get; set; }
|
||||||
public decimal? budget_amount { get; set; }
|
public decimal? budget_amount { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class budget_summary_report_detail
|
public class budget_summary_report_detail
|
||||||
{
|
{
|
||||||
public string product { get; set; }
|
public string product { get; set; }
|
||||||
@@ -121,7 +136,6 @@ namespace rmutr_report.Models
|
|||||||
public decimal? budget_4 { get; set; }
|
public decimal? budget_4 { get; set; }
|
||||||
public decimal? budget_5 { get; set; }
|
public decimal? budget_5 { get; set; }
|
||||||
public decimal? total_budget { get; set; }
|
public decimal? total_budget { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class operating_expenses_details
|
public class operating_expenses_details
|
||||||
@@ -151,12 +165,47 @@ namespace rmutr_report.Models
|
|||||||
// public List<durable_articles_detail>durable_articles{ get; set; }
|
// 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 class durable_articles_detail
|
||||||
{
|
{
|
||||||
public string color { get; set; }
|
public int? color { get; set; }
|
||||||
public string rowno { 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 list { get; set; }
|
||||||
public string unit { get; set; }
|
public string unit { get; set; }
|
||||||
public string unit_amount { get; set; }
|
public string unit_amount { get; set; }
|
||||||
@@ -169,7 +218,8 @@ namespace rmutr_report.Models
|
|||||||
public string type_1 { get; set; }
|
public string type_1 { get; set; }
|
||||||
public string type_2 { get; set; }
|
public string type_2 { get; set; }
|
||||||
public string type_3 { get; set; }
|
public string type_3 { get; set; }
|
||||||
public string remark { get; set; }
|
public string remark { get; set; }
|
||||||
|
//public List<durable_articles_detail5> durable_articles_detail { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// public class building_headers1
|
// public class building_headers1
|
||||||
@@ -191,21 +241,90 @@ 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 rowno { get; set; }
|
||||||
public string list { get; set; }
|
public string list { get; set; }
|
||||||
public string unit { get; set; }
|
public string unit { get; set; }
|
||||||
public string unit_amount { get; set; }
|
public string unit_amount { get; set; }
|
||||||
public decimal? unit_price { get; set; }
|
public decimal? unit_price { get; set; }
|
||||||
public decimal? total_amount { get; set; }
|
public decimal? total_amount { get; set; }
|
||||||
public string boq { get; set; }
|
public string boq { get; set; }
|
||||||
public string pic { get; set; }
|
public string pic { get; set; }
|
||||||
public string remark { get; set; }
|
public string remark { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
public class subsidy_service_headers_detail
|
|
||||||
|
public class subsidy_service_headers_detail
|
||||||
{
|
{
|
||||||
public string color { get; set; }
|
public string color { get; set; }
|
||||||
public string rowno { get; set; }
|
public string rowno { get; set; }
|
||||||
@@ -217,8 +336,7 @@ namespace rmutr_report.Models
|
|||||||
public decimal? amount_5 { get; set; }
|
public decimal? amount_5 { get; set; }
|
||||||
public decimal? amount_6 { get; set; }
|
public decimal? amount_6 { get; set; }
|
||||||
public decimal? amount_7 { get; set; }
|
public decimal? amount_7 { get; set; }
|
||||||
public string remark { get; set; }
|
public string remark { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// public class subsidy_science_headers
|
// public class subsidy_science_headers
|
||||||
@@ -238,7 +356,6 @@ namespace rmutr_report.Models
|
|||||||
public string unit { get; set; }
|
public string unit { get; set; }
|
||||||
public decimal? unit_amount { get; set; }
|
public decimal? unit_amount { get; set; }
|
||||||
public decimal? amount { get; set; }
|
public decimal? amount { get; set; }
|
||||||
public string remark { get; set; }
|
public string remark { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user