Пример #1
0
        public string DeletarJuro(TRegistro_CadJuro val)
        {
            Hashtable hs = new Hashtable(1);

            hs.Add("@P_CD_JURO", val.Cd_juro);

            return(this.executarProc("EXCLUI_FIN_JURO", hs));
        }
Пример #2
0
        public TList_CadJuro Select(TpBusca[] vBusca, Int32 vTop, string vNM_Campo)
        {
            TList_CadJuro lista = new TList_CadJuro();
            SqlDataReader reader;
            bool          podeFecharBco = false;

            if (Banco_Dados == null)
            {
                podeFecharBco = this.CriarBanco_Dados(false);
            }
            reader = this.ExecutarBusca(this.SqlCodeBusca(vBusca, Convert.ToInt16(vTop), vNM_Campo));
            try
            {
                while (reader.Read())
                {
                    TRegistro_CadJuro reg = new TRegistro_CadJuro();
                    if (!(reader.IsDBNull(reader.GetOrdinal("CD_Juro"))))
                    {
                        reg.Cd_juro = reader.GetString(reader.GetOrdinal("CD_Juro"));
                    }
                    if (!(reader.IsDBNull(reader.GetOrdinal("DS_Juro"))))
                    {
                        reg.Ds_juro = reader.GetString(reader.GetOrdinal("DS_Juro"));
                    }
                    if (!(reader.IsDBNull(reader.GetOrdinal("TP_Juro"))))
                    {
                        reg.Tp_juro = reader.GetString(reader.GetOrdinal("TP_Juro"));
                    }
                    if (!(reader.IsDBNull(reader.GetOrdinal("PC_JuroDiario_Atrazo"))))
                    {
                        reg.Pc_jurodiario_atrazo = reader.GetDecimal(reader.GetOrdinal("PC_JuroDiario_Atrazo"));
                    }
                    if (!(reader.IsDBNull(reader.GetOrdinal("DiasCarencia"))))
                    {
                        reg.Diascarencia = reader.GetDecimal(reader.GetOrdinal("DiasCarencia"));
                    }
                    if (!(reader.IsDBNull(reader.GetOrdinal("ST_Registro"))))
                    {
                        reg.St_registro = reader.GetString(reader.GetOrdinal("ST_Registro"));
                    }

                    lista.Add(reg);
                }
            }
            finally
            {
                reader.Close();
                reader.Dispose();
                if (podeFecharBco)
                {
                    this.deletarBanco_Dados();
                }
            }
            return(lista);
        }
Пример #3
0
        public string GravarJuro(TRegistro_CadJuro val)
        {
            Hashtable hs = new Hashtable(6);

            hs.Add("@P_CD_JURO", val.Cd_juro);
            hs.Add("@P_DS_JURO", val.Ds_juro);
            hs.Add("@P_TP_JURO", val.Tp_juro);
            hs.Add("@P_PC_JURODIARIO_ATRAZO", val.Pc_jurodiario_atrazo);
            hs.Add("@P_DIASCARENCIA", val.Diascarencia);
            hs.Add("@P_ST_REGISTRO", val.St_registro);

            return(this.executarProc("IA_FIN_JURO", hs));
        }