示例#1
0
 public bool confirmarCheckIn(string codFunc, String codReserva)
 {
     check = new FormCheckIn_DAL();
     if (check.confirmarCheckIn(codFunc, codReserva) == 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 public bool cancelarReservaBll(String codReserva)
 {
     check = new FormCheckIn_DAL();
     if (check.cancelarReserva(codReserva) == 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#3
0
 public bool realizarNoShowBll(String codReserva)
 {
     check = new FormCheckIn_DAL();
     if (check.realizarNoShow(codReserva) == 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#4
0
        public bool confirmarAlterandoBLL(string val, string data, string servicos)
        {
            check = new FormCheckIn_DAL();

            val = val + codCli + ";";
            if (check.confirmarAlterandoDAL(val, data, servicos) == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#5
0
        public String pesquisaBll(string codReserva)
        {
            check = new FormCheckIn_DAL();
            data  = new DataTable();
            String todosServicos = null;

            try
            {
                data = check.pesquisarReserva(codReserva);

                codCli         = data.Rows[0]["codCliente"].ToString();
                codReserva     = data.Rows[0]["codReserva"].ToString();
                nomeCliente    = data.Rows[0]["nomeCliente"].ToString();
                emailCliente   = data.Rows[0]["emailCliente"].ToString();
                codQuarto      = data.Rows[0]["codQuarto"].ToString();
                cepCliente     = data.Rows[0]["cepCliente"].ToString();
                cpfCliente     = data.Rows[0]["cpfCliente"].ToString();
                dataEntrada    = data.Rows[0]["dataEntrada"].ToString();
                dataNascimento = data.Rows[0]["dataNascimentoCliente"].ToString();
                dataSaida      = data.Rows[0]["dataSaida"].ToString();
                telefone       = data.Rows[0]["telefoneCliente"].ToString();
                quatidade      = data.Rows[0]["qtdeHospede"].ToString();
                status         = data.Rows[0]["statusReserva"].ToString();

                for (int i = 0; i < data.Rows.Count; i++)
                {
                    if (data.Rows[i]["codServico"].ToString().Equals("100001"))
                    {
                        todosServicos += "cafe,";
                    }

                    if (data.Rows[i]["codServico"].ToString().Equals("100002"))
                    {
                        todosServicos += "almoco,";
                    }

                    if (data.Rows[i]["codServico"].ToString().Equals("100003"))
                    {
                        todosServicos += "jantar,";
                    }

                    if (data.Rows[i]["codServico"].ToString().Equals("100004"))
                    {
                        todosServicos += "piscina,";
                    }

                    if (data.Rows[i]["codServico"].ToString().Equals("100005"))
                    {
                        todosServicos += "sauna,";
                    }

                    if (data.Rows[i]["codServico"].ToString().Equals("100006"))
                    {
                        todosServicos += "jogos,";
                    }
                }
                return(todosServicos);
            }
            catch (Exception)
            {
                return(null);
            }
        }