public DataTable FechamentoTotalDia() { try { DataTable tab; objDAL = new FechamentoCaixaDAL(); tab = objDAL.FechamentoTotalDia(); objDAL = null; return(tab); } catch (Exception) { throw; } }
public DataTable CaixaInicial() { try { DataTable tab; objDAL = new FechamentoCaixaDAL(); tab = objDAL.CaixaInicial(); objDAL = null; if (tab.Rows.Count > 0) { this.valor = Decimal.Parse(tab.Rows[0][0].ToString()); } else { this.valor = 0; } return(tab); } catch (Exception) { throw; } }
public bool JaFechou(int Usuario, int IDAber) { try { DataTable tab; objDAL = new FechamentoCaixaDAL(); tab = objDAL.jaFechou(Usuario, IDAber); objDAL = null; if (tab.Rows[0][0].ToString() != "0") { return(true); } else { return(false); } } catch (Exception) { throw; } }
public void inserir() { objDAL = new FechamentoCaixaDAL(); objDAL.inserir(this.usuario, this.data, this.hora, this.valor, this.caixa, this.IDAber); objDAL = null; }