Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected static List<VencimentoCredenciamento> ListarGraficasComCredenciamentoAVencerBD
- (int daquiHaQuantosDias)
- {
- DateTime dataBase = DateTime.Now;
- string ano = "2019"; string mes = "03"; string dia = "11";
- dataBase = new DateTime(int.Parse(ano), int.Parse(mes), int.Parse(dia));
- string procedure = "usr_sat_ciaf.PKG_AIDF_DATA.PESQUISA_CREDENC_A_VENCER";
- DbProcedureSettings sp = new DbProcedureSettings();
- sp.ObjectName = procedure;
- sp.Parameters.AddInput("p_DIAS_INICIAL", daquiHaQuantosDias-1, DbDataType.Int64);
- sp.Parameters.AddInput("p_DIAS_FINAL", daquiHaQuantosDias+1, DbDataType.Int64);
- sp.Parameters.AddInput("p_DATABASE", dataBase, DbDataType.Date);
- sp.Parameters.AddOutput("p_Cursor", typeof(VencimentoCredenciamento));
- DbManager.InvokeStoredProcedure(sp);
- List<VencimentoCredenciamento> ListaVencimentos =
- sp.Parameters.GetValue<List<VencimentoCredenciamento>>("p_Cursor").ToList();
- return ListaVencimentos;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement