Files
rmutr_report/Models/budget/revenue_estimates.cs
T
Nut.ไปเรื่อย ec4b99f53e
continuous-integration/drone/push Build is passing
feat: emit live Excel formulas for ร.15 revenue-estimate semester rows
Replace static computed values for F/H/J/L/N/P/R with FormulaA1 cell
formulas (=B-D, =(F*10)/100, etc.) so the exported report is auditable
and recalculates in Excel, matching a reference ร15.xlsx. P/R now use
the per-row contribution/framework percent passed from rmutr-api
instead of a fixed 40%.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhYYmBPw4LhYXoDnTNz2xV
2026-08-05 11:27:28 +07:00

58 lines
2.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace rmutr_report.Models
{
public class revenue_estimates
{
[Key] public Guid? revenue_estimates_uid { get; set; }
// public Guid? academic_year_uid { get; set; }
public string academic_year_name_th { get; set; }
public string start_and_end_date_report { get; set; }
//
public string education_level { get; set; }
//
public string faculty_name_th { get; set; }
public string agency_name_th { get; set; }
//
public string author_name { get; set; }
public string position_name { get; set; }
public string phone { get; set; }
public DateTime? version { get; set; }
public List<t_revenue_estimates_detail> revenue_estimates_details { get; set; }
}
public class t_revenue_estimates_detail
{
[Key] public Guid? revenue_estimates_detail_uid { get; set; }
public Guid? revenue_estimates_uid { get; set; }
public string topic { get; set; }
public string academic_year_name_th { get; set; }
public decimal? revenue_estimates { get; set; }
public decimal? less_revenue_estimates { get; set; }
public decimal? balance_revenue_estimates { get; set; }
public decimal? less_accumulated_income { get; set; }
public decimal? balance_before_allocating_according { get; set; }
public decimal? contribution_utility_bills { get; set; }
public decimal? contribution_central_budget { get; set; }
public decimal? contribution_central_expenditure { get; set; }
public decimal? expenditure_limit { get; set; }
public decimal? contribution_percent { get; set; }
public decimal? framework_percent { get; set; }
public int? topic_type { get; set; }
public DateTime? version { get; set; }
public int? row { get; set; }
public bool? is_footer { get; set; }
}
}