示例#1
0
        public List <LsBeneficiario> TraeBeneficiariosXExpteANSES(string expediente_org
                                                                  , string expediente_precu
                                                                  , string expediente_doccu
                                                                  , string expediente_digcu
                                                                  , string expediente_ctipo
                                                                  , string expediente_sec)
        {
            ActoresDatos objdao = new ActoresDatos();

            try
            {
                // Creo un Objeto Windows Identity para enviarle al thread asyncronico
                //(lo necesita para poder impersonar el thread nuevo)
                WindowsIdentity mThreadIdentity = WindowsIdentity.GetCurrent();
                return(objdao.TraeBeneficiariosXExpteANSES(expediente_org
                                                           , expediente_precu
                                                           , expediente_doccu
                                                           , expediente_digcu
                                                           , expediente_ctipo
                                                           , expediente_sec));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objdao.Dispose();
            }
        }
示例#2
0
 public List <LsBeneficiario> TraeBeneficiariosXExpteANSES(string expediente_org
                                                           , string expediente_precu
                                                           , string expediente_doccu
                                                           , string expediente_digcu
                                                           , string expediente_ctipo
                                                           , string expediente_sec)
 {
     try
     {
         return(oDatos.TraeBeneficiariosXExpteANSES(expediente_org
                                                    , expediente_precu
                                                    , expediente_doccu
                                                    , expediente_digcu
                                                    , expediente_ctipo
                                                    , expediente_sec));
     }
     catch (Exception ex)
     {
         throw new Exception("Error en " + System.Reflection.MethodBase.GetCurrentMethod(), ex);
     }
     finally
     {
         oDatos.Dispose();
     }
 }