示例#1
0
 public PagamentosController(
     VwPagamentosCartaoService vwPagamentosCartaoService,
     TbPagamentoVendaService tbPagamentoVendaService,
     StoredProcedureService storedProcedureService)
 {
     _vwPagamentosCartaoService = vwPagamentosCartaoService;
     _tbPagamentoVendaService   = tbPagamentoVendaService;
     _storedProcedureService    = storedProcedureService;
 }
        public static void StoredProcedures()
        {
            Console.WriteLine("1. FreeRooms ");
            Console.WriteLine("2. Payments for 2021");
            Console.WriteLine("3. Get Guest Reservation");
            Console.WriteLine("4. Get Room By Person Count");
            Console.WriteLine("5. Get Guest Payment With  Room");
            string c = Console.ReadLine();

            Console.WriteLine("------------------------------------------------------------------------" +
                              "-----------------------------------------------------------------------------------");
            switch (c)
            {
            case "1":
                StoredProcedureService.FreeRoom();
                break;

            case "2":
                StoredProcedureService.Payments();
                break;

            case "3":
                StoredProcedureService.GetGuestReservation();
                break;

            case "4":
                StoredProcedureService.GetRoomByPersonCount();
                break;

            case "5":
                StoredProcedureService.GetGuestPaymentWithRoom();
                break;

            default:
                throw new ArgumentException("unhendled case");
            }
            Console.WriteLine("------------------------------------------------------------------------" +
                              "-----------------------------------------------------------------------------------");
            //MainMenu.Menu();
        }
示例#3
0
 public CompanyDashboard(UnitOfWork unit) : base(unit)
 {
     _queryService     = new QueryService(unit);
     _timeTracking     = new TimeTracking(unit);
     _storedProcedures = new StoredProcedureService(unit);
 }
 public AnnualOverview(UnitOfWork unit) : base(unit)
 {
     _storedProcedures = new StoredProcedureService(unit);
 }
示例#5
0
 public PersonalDashboard(UnitOfWork unit) : base(unit)
 {
     _storedProcedureService = new StoredProcedureService(unit);
 }
示例#6
0
 public TeamDashboard(UnitOfWork unit) : base(unit)
 {
     _timeTracking     = new TimeTracking(unit);
     _storedProcedures = new StoredProcedureService(unit);
 }