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

            return uniqueInstance;
        }
Ejemplo n.º 2
0
        public static RepairList getInstance()
        {
            if (uniqueInstance == null)
            {
                uniqueInstance = new RepairList();
            }

            return(uniqueInstance);
        }
Ejemplo n.º 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());
            }
        }
Ejemplo n.º 4
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();
        }