Beispiel #1
0
        public Form1()
        {
            InitializeComponent();

            axWindowsMediaPlayer1.uiMode       = "none";
            axWindowsMediaPlayer1.stretchToFit = true;
            foreach (var item in Directory.GetFiles(@"C:\videos", "*.mp4"))
            {
                WMPLib.IWMPMedia nueva = axWindowsMediaPlayer1.newMedia(item);
                axWindowsMediaPlayer1.currentPlaylist.appendItem(nueva);
            }
            axWindowsMediaPlayer1.Ctlcontrols.play();

            var bloqueid = int.Parse(ConfigurationManager.AppSettings["Bloque"]);

            var lista = TvBL.ListarTv(bloqueid);

            label1.Text = lista[0].Denominacion;
            label2.Text = lista[1].Denominacion;
            label3.Text = lista[2].Denominacion;
            label4.Text = lista[3].Denominacion;
        }
Beispiel #2
0
        public ActionResult Atender(int colaId, int ventanillaId, int servicioId, int bloqueId, bool atendido)
        {
            ColaVentanillaBL.Crear(new ColaVentanilla {
                Fecha        = DateTime.Now,
                ColaId       = colaId,
                VentanillaId = ventanillaId,
                IndAtendido  = atendido
            });

            var v = VentanillaBL.Obtener(ventanillaId);
            var c = ColaBL.Obtener(colaId);

            TvBL.Crear(new Tv {
                BloqueId     = bloqueId,
                Denominacion = c.Codigo + " -- " + v.Denominacion,
                Fecha        = DateTime.Now
            });

            ColaBL.ActualizarParcial(new Cola {
                Id = colaId, IndAtendido = true
            }, x => x.IndAtendido);
            //return Json(true, JsonRequestBehavior.AllowGet);
            return(ObtenerNroCola(servicioId, ventanillaId));
        }