예제 #1
0
 public bool Fecha(Caixa_Situacao c)
 {
     if (c.Situacao_Id == 1)
     {
         MovimentoDAO DAO    = new MovimentoDAO();
         DataTable    Result = new DataTable();
         Result = DAO.Fecha(c, Autenticacao.GetCodUsuario());
         if (Result != null)
         {
             if (Result.Rows.Count > 0)
             {
                 if (!Result.Rows[0].ItemArray[0].ToString().Equals("-1"))
                 {
                     c             = null;
                     c             = new Caixa_Situacao();
                     c.Situacao_Id = 0;
                     c.Caixa_Id    = 0;
                     Autenticacao.SetCaixa(0);
                     Autenticacao.SetCaixa_Situacao(c);
                     return(true);
                 }
             }
         }
     }
     return(false);
 }