public string Excluir(TRegistro_TpBaseCalcCredito val) { System.Collections.Hashtable hs = new System.Collections.Hashtable(1); hs.Add("@P_ID_BASECREDITO", val.Id_basecredito); return(this.executarProc("EXCLUI_FIS_TPBASECALCCREDITO", hs)); }
public string Gravar(TRegistro_TpBaseCalcCredito val) { System.Collections.Hashtable hs = new System.Collections.Hashtable(2); hs.Add("@P_ID_BASECREDITO", val.Id_basecredito); hs.Add("@P_DS_BASECREDITO", val.Ds_basecredito); return(this.executarProc("IA_FIS_TPBASECALCCREDITO", hs)); }
public TList_TpBaseCalcCredito Select(Utils.TpBusca[] vBusca, Int32 vTop, string vNM_Campo) { TList_TpBaseCalcCredito lista = new TList_TpBaseCalcCredito(); bool podeFecharBco = false; if (Banco_Dados == null) { podeFecharBco = this.CriarBanco_Dados(false); } System.Data.SqlClient.SqlDataReader reader = this.ExecutarBusca(this.SqlCodeBusca(vBusca, Convert.ToInt16(vTop), vNM_Campo)); try { while (reader.Read()) { TRegistro_TpBaseCalcCredito reg = new TRegistro_TpBaseCalcCredito(); if (!reader.IsDBNull(reader.GetOrdinal("id_basecredito"))) { reg.Id_basecredito = reader.GetDecimal(reader.GetOrdinal("id_basecredito")); } if (!reader.IsDBNull(reader.GetOrdinal("DS_basecredito"))) { reg.Ds_basecredito = reader.GetString(reader.GetOrdinal("DS_basecredito")); } lista.Add(reg); } } finally { reader.Close(); reader.Dispose(); if (podeFecharBco) { this.deletarBanco_Dados(); } } return(lista); }