public static string CargaMotivo(string Area)
        {
            int tipo = 0;

            if (Area == "CSR")
            {
                tipo = 4;
            }
            else if (Area == "Vendedores")
            {
                tipo = 5;
            }
            Controller_EstadoOT c      = new Controller_EstadoOT();
            List <Estado_OT>    lista  = c.ListarArea("", tipo);
            List <Estado_OT>    lista2 = new List <Estado_OT>();

            int       contador = 1;
            Estado_OT insert1  = new Estado_OT();

            insert1.Cliente = "Seleccionar";
            lista2.Insert(0, insert1);
            foreach (Estado_OT ps in lista)
            {
                Estado_OT objst = new Estado_OT();
                objst.Cliente = ps.Cliente;
                lista2.Insert(contador, objst);
                contador++;
            }

            JavaScriptSerializer jscript = new JavaScriptSerializer();

            return(jscript.Serialize(lista2));
        }
        public static string CargaMotivos(string Area)
        {
            Controller_EstadoOT c      = new Controller_EstadoOT();
            List <Estado_OT>    lista  = c.ListarArea(Area, 6);
            List <Estado_OT>    lista2 = new List <Estado_OT>();

            int       contador = 1;
            Estado_OT insert1  = new Estado_OT();

            insert1.Cliente = "Seleccionar";
            lista2.Insert(0, insert1);
            foreach (Estado_OT ps in lista)
            {
                Estado_OT objst = new Estado_OT();
                objst.Cliente = ps.Cliente;
                lista2.Insert(contador, objst);
                contador++;
            }

            JavaScriptSerializer jscript = new JavaScriptSerializer();

            return(jscript.Serialize(lista2));
        }
        public static string CargaArea(string Area)
        {
            int tipo = 0;

            if (Area == "CSR")
            {
                tipo = 2;
            }
            else if (Area == "Vendedores")
            {
                tipo = 3;
            }
            else if (Area == "Bodega de Rezago")
            {
                tipo = 4;
            }
            else if (Area == "Facturacion")
            {
                tipo = 5;
            }
            else if (Area == "Biblioteca")
            {
                tipo = 7;
            }
            else if (Area == "Despacho")
            {
                tipo = 8;
            }
            else if (Area == "Bodega Materias Primas")
            {
                tipo = 9;
            }
            else if (Area == "Encuadernacion")
            {
                tipo = 10;
            }
            else if (Area == "Control de Calidad")
            {
                tipo = 11;
            }
            Controller_EstadoOT c      = new Controller_EstadoOT();
            List <Estado_OT>    lista  = c.ListarArea("", tipo);
            List <Estado_OT>    lista2 = new List <Estado_OT>();

            int       contador = 1;
            Estado_OT insert1  = new Estado_OT();

            insert1.Cliente = "Seleccionar";
            lista2.Insert(0, insert1);
            foreach (Estado_OT ps in lista)
            {
                Estado_OT objst = new Estado_OT();
                objst.Cliente = ps.Cliente;
                lista2.Insert(contador, objst);
                contador++;
            }

            JavaScriptSerializer jscript = new JavaScriptSerializer();

            return(jscript.Serialize(lista2));
        }