Пример #1
0
        public static decimal ObtenerHorasAlerta(string TipAlert, string DescAlert)
        {
            decimal result = 0;
            List <Entidad.TiempoAlerta> LstAlert = new List <Entidad.TiempoAlerta>();

            Entidad.TiempoAlertaQueryInput input = new Entidad.TiempoAlertaQueryInput();
            input.DESCALERT = DescAlert;
            input.TIPALERT  = TipAlert;
            input.OPEPORT   = ConfigurationManager.AppSettings["OPEPORT"]; //RUC DPW
            LstAlert        = lgCitaAlert.GetTiempoAlert(input);
            if (LstAlert.Count > 0)
            {
                result = LstAlert[0].TEMPALERT;
            }
            return(result);
        }
Пример #2
0
 public List <Entidad.TiempoAlerta> GetTiempoAlert(Entidad.TiempoAlertaQueryInput Parametros)
 {
     return(ejecuta.GetTiempoAlert(Parametros));
 }
Пример #3
0
        public List <Entidad.TiempoAlerta> GetTiempoAlert(Entidad.TiempoAlertaQueryInput Parametros)
        {
            dtResultado = DB2Helper.ExecuteDb2Query(CommandType.StoredProcedure, "SP_JNTAOPE_CONSULTA_TIEMPO_ALERTA", Parametros);

            return(dtResultado.ToList <Entidad.TiempoAlerta>());
        }