Пример #1
0
        public static FuelCardList getInstance()
        {
            if (_uniqueInstance == null)
                _uniqueInstance = new FuelCardList();

            return _uniqueInstance;
        }
Пример #2
0
        public static FuelCardList getInstance()
        {
            if (_uniqueInstance == null)
            {
                _uniqueInstance = new FuelCardList();
            }

            return(_uniqueInstance);
        }
Пример #3
0
        public DataTable ToDataTable(Status status)
        {
            switch (status)
            {
            case Status.Buy:
                return(ToDataTableBuy());

            case Status.Actual:
                return(ToDataTableActual());

            case Status.Repair:
                return(RepairList.getInstance().ToDataTable());

            case Status.Sale:
                return(CarSaleList.getInstance().ToDataTable());

            case Status.Invoice:
                return(InvoiceList.getInstance().ToDataTable());

            case Status.Policy:
                return(PolicyList.getInstance().ToDataTable());

            case Status.DTP:
                return(DTPList.getInstance().ToDataTable());

            case Status.Violation:
                return(ViolationList.getInstance().ToDataTable());

            case Status.DiagCard:
                return(DiagCardList.getInstance().ToDataTable());

            case Status.TempMove:
                return(TempMoveList.getInstance().ToDataTable());

            case Status.ShipPart:
                return(ShipPartList.getInstance().ToDataTable());

            case Status.Account:
                return(AccountList.getInstance().ToDataTable());

            case Status.AccountViolation:
                return(ViolationList.getInstance().ToDataTableAccount());

            case Status.FuelCard:
                return(FuelCardList.getInstance().ToDataTable());

            case Status.Driver:
                return(DriverList.getInstance().ToDataTable());

            default:
                return(ToDataTable());
            }
        }
Пример #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);
        }