Ejemplo n.º 1
0
        public static ViolationList getInstance()
        {
            if (uniqueInstance == null)
                uniqueInstance = new ViolationList();

            return uniqueInstance;
        }
Ejemplo n.º 2
0
        public formViolationList(Driver driver)
        {
            InitializeComponent();

            this.driver = driver;

            violationList = ViolationList.getInstance();
        }
Ejemplo n.º 3
0
        public static ViolationList getInstance()
        {
            if (uniqueInstance == null)
            {
                uniqueInstance = new ViolationList();
            }

            return(uniqueInstance);
        }
Ejemplo n.º 4
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());
            }
        }
Ejemplo n.º 5
0
        public Car_AddEdit(Car car)
        {
            InitializeComponent();

            _car = car;

            diagCardList = DiagCardList.getInstance();
            driverCarList = DriverCarList.getInstance();
            driverList = DriverList.getInstance();
            dtpList = DTPList.getInstance();
            invoiceList = InvoiceList.getInstance();
            mileageList = MileageList.getInstance();
            policyList = PolicyList.getInstance();
            repairList = RepairList.getInstance();
            violationList = ViolationList.getInstance();
            shipPartList = ShipPartList.getInstance();
        }