add export excel

This commit is contained in:
kamonwan taengsuk
2023-03-29 21:57:16 +07:00
parent 0e59f3c39c
commit f38f9ce5f9
13 changed files with 1069 additions and 287 deletions

View File

@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace rmutr_report.Models.Personnel
{
public class set_personnel_budget
{
// [Key]
// public Guid? set_personnel_budget_uid { get; set; }
// public Guid? academic_year_uid { get; set; }
public string academic_year_name_th { get; set; }
public string personnel_salary_permanent { get; set; }
public string ministry_name_th { get; set; }
public string agency_name_th { get; set; }
public int? total_propose_budget1 { get; set; }
public int? budget1 { get; set; }
public int? total_propose_budget2 { get; set; }
public int? budget2 { get; set; }
public string year1 { get; set; }
public decimal? act_old1 { get; set; }
public decimal? disbursement_year_act_old1 { get; set; }
public decimal? disbursement_year_act_old1_percent { get; set; }
public decimal? remaining_act_old1{ get; set; }
public decimal? remaining_act_old1_percent { get; set; }
public string year2 { get; set; }
public decimal? act_old2 { get; set; }
public string actually_paid_month { get; set; }
public decimal? actually_paid { get; set; }
public decimal? actually_paid_percent { get; set; }
public decimal? remaining_act_old2{ get; set; }
public decimal? remaining_act_old2_percent { get; set; }
public decimal? not_include_salary1{ get; set; }
public decimal? not_include_salary2 { get; set; }
public DateTime? version { get; set; }
public string year_table1 { get; set; }
public string year_table2 { get; set; }
public string year_table3 { get; set; }
public string year_table4 { get; set; }
public string year_table5 { get; set; }
public List<t_set_personnel_budget_detail> set_personnel_budget_details { get; set; }
}
public class t_set_personnel_budget_detail
{
// [Key]
// public Guid? set_personnel_budget_detail_uid { get; set; }
// public Guid? set_personnel_budget_uid { get; set; }
public bool? is_bold { get; set; }
public string topic { get; set; }
public int? act_rate { get; set; }
public decimal? act_budget { get; set; }
public int? request_rate { get; set; }
public decimal? request_budget { get; set; }
public int? offer_rate { get; set; }
public decimal? offer_budget { get; set; }
public int? year1_rate { get; set; }
public decimal? year1_budget { get; set; }
public int? year2_rate { get; set; }
public decimal? year2_budget { get; set; }
public int? year3_rate { get; set; }
public decimal? year3_budget { get; set; }
public string? remark { get; set; }
}
}

View File

@@ -43,6 +43,8 @@ namespace rmutr_report.Models
public string project_name_1 { get; set; }
public string project_name_2 { get; set; }
public string project_name_3 { get; set; }
public string list_4 { get; set; }
public string project_name_4 { get; set; }
public string model_number_1 { get; set; }
public string model_number_2 { get; set; }
public string model_number_3 { get; set; }
@@ -52,6 +54,8 @@ namespace rmutr_report.Models
public string calculate_price_date_1 { get; set; }
public string calculate_price_date_2 { get; set; }
public string calculate_price_date_3 { get; set; }
public string calculate_price_date_4 { get; set; }
public string reason { get; set; }
public decimal? construct_total_amount { get; set; }
public decimal? mid_amount { get; set; }
public string amount_bath_text { get; set; }
@@ -59,9 +63,13 @@ namespace rmutr_report.Models
public decimal? total_amount_porro5_2 { get; set; }
public decimal? square_meter { get; set; }
public decimal? square_meter_amount { get; set; }
public decimal? total_expense { get; set; }
public decimal? total_expense_vat { get; set; }
public decimal? total_allexpense_vat { get; set; }
public List<materials_construction_labor> material_construction_labor1 { get; set; }
public List<materials_construction_labor2> material_construction_labor2 { get; set; }
public List<materials_construction_labor3> material_construction_labor3 { get; set; }
public List<materials_construction_labor> expense_category { get; set; }
public string url_file { get; set; }
public decimal? material_total_amount1 { get; set; }
public decimal? material_total_amount2 { get; set; }
@@ -206,6 +214,8 @@ namespace rmutr_report.Models
public decimal? amount2 { get; set; }
public string note { get; set; }
}
public class details_division_work
{
public string budget_year { get; set; }