using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XYY.Service.Standard.Finance.Charging.FeeFormula
{
    public class FormulaBase
    {

        public FormulaBase(DateTime EffectiveDate, int customerId, int expressId, string formula)
        {
            this.Key = $"Formula{customerId.ToString("00000")}{expressId.ToString("00000")}";
            this.Formula = formula;
            this.DateTimeVersion = long.Parse(EffectiveDate.ToString("yyyyMMdd"));
        }

        public long DateTimeVersion
        {
            get; set;
        }

        public string Key
        {
            get; set;
        }

        public string Formula
        {
            get; set;
        }
    }
}
