Exemple #1
0
 internal Fuel(FuelCard fuelCard, DateTime date, EngineType engineType)
 {
     FuelCard = fuelCard;
     Date = date;
     EngineType = engineType;
     Value = 0;
 }
Exemple #2
0
        public void Add(EngineType engineType)
        {
            if (list.Exists(et => et.ID == engineType.ID))
                return;

            list.Add(engineType);
        }
Exemple #3
0
        protected override void loadFromSql()
        {
            DataTable dt = _provider.Select("EngineType");

            foreach (DataRow row in dt.Rows)
            {
                EngineType engineType = new EngineType(row);
                Add(engineType);
            }
        }
Exemple #4
0
        static FuelLoader()
        {
            erorrs = new List<string>();

            fuelCardList = FuelCardList.getInstance();
            engineTypeList = EngineTypeList.getInstance();
            benzin = engineTypeList.getItem(BENZIN_ID);
            disel = engineTypeList.getItem(DIESEL_ID);

            loaders = new Dictionary<FuelReport, Action<ExcelDoc>>();

            loaders.Add(FuelReport.Петрол, LoadPetrol);
            loaders.Add(FuelReport.Neste, LoadNeste);
            loaders.Add(FuelReport.Чеки, LoadChecks);
        }