This commit is contained in:
Binary file not shown.
46
TareasProgramadas/Tareas119.ashx
Normal file
46
TareasProgramadas/Tareas119.ashx
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<%@ WebHandler Language="C#" Class="TareasJam" %>
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Web;
|
||||||
|
using Extensiones;
|
||||||
|
|
||||||
|
public class TareasJam : IHttpHandler
|
||||||
|
{
|
||||||
|
|
||||||
|
public void ProcessRequest(HttpContext context)
|
||||||
|
{
|
||||||
|
context.Response.ContentType = "text/plain";
|
||||||
|
//context.Response.Write("Hello World");
|
||||||
|
bool retorno = false;
|
||||||
|
string Metodo = context.Request["Metodo"] ==null?"": context.Request["Metodo"];
|
||||||
|
int CveEmpresa =context.Request["CveEmpresa"] ==null?0: context.Request["CveEmpresa"].ToEntero();
|
||||||
|
switch (Metodo)
|
||||||
|
{
|
||||||
|
case "EjecutaThalamus":
|
||||||
|
retorno =EjecutaThalamus(CveEmpresa);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (retorno)
|
||||||
|
{
|
||||||
|
context.Response.Write("True");
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
context.Response.Write("False");
|
||||||
|
|
||||||
|
}
|
||||||
|
context.Response.End();
|
||||||
|
//ModExtensiones.GuardaLogAD(string.Format("{3} CveEmpresa={0} cveTareaProgramada={1} CveTareaProgramadaHistorial={2}", CveEmpresa, cveTareaProgramada, CveTareaProgramadaHistorial, Metodo), "Tareas Programadas");
|
||||||
|
}
|
||||||
|
public bool EjecutaThalamus(int CveEmpresa)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public bool IsReusable
|
||||||
|
{
|
||||||
|
get { return false; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user