コード例 #1
0
 public Form1()
 {
     InitializeComponent();
     // 检查excle是否存在,不存在则创建
     if (ApplicationConfig.isUseSqlServer != "1")
     {
         billBuzz = new BillExcelBizNPOI();
         billBuzz.init();
     }
     else
     {
         billBuzz = new BillBiz();
     }
     initControl();
 }
コード例 #2
0
        public InterestCalculationUnitTest()
        {
            var host     = WebHost.CreateDefaultBuilder().UseStartup <Startup>().Build();
            var provider = host.Services.CreateScope().ServiceProvider;

            _billBusiness = provider.GetRequiredService <IBillBusiness>();

            _rules = new List <InterestRule>
            {
                new InterestRule {
                    InterestRuleId = 1, DelayDays = 3, Penalty = 0.02m, InterestPerDay = 0.001m
                },
                new InterestRule {
                    InterestRuleId = 2, DelayDays = 4, Penalty = 0.03m, InterestPerDay = 0.002m
                },
                new InterestRule {
                    InterestRuleId = 3, DelayDays = 6, Penalty = 0.05m, InterestPerDay = 0.003m
                }
            };
        }
コード例 #3
0
 public BillController(IBillBusiness hoaDonBusiness)
 {
     _hoaDonBusiness = hoaDonBusiness;
 }
コード例 #4
0
 public BillsController(IBillBusiness billBusiness)
 {
     _billBusiness = billBusiness;
 }