Ejemplo n.º 1
0
        private async void btnUpdate_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            model = (EscanerDataContext)rootPage.DataContext;
            string valorCaja      = txtCaja.Text;
            string valorPergamino = txtPergamino.Text;

            // Codig de actualizacion de no. de pergamino según el no. de caja
            try
            {
                Models.Archivos.Archivos_PostPergaminoBindingModel modelPergamino = new Models.Archivos.Archivos_PostPergaminoBindingModel();
                modelPergamino.Caja      = valorCaja;
                modelPergamino.Pergamino = valorPergamino;

                await ArchivosModel.PostPergamino(modelPergamino);

                MainPage.Current.NotifyUser("Datos guardados exitosamente", NotifyType.StatusMessage);
            }
            catch (Exception ex) {
                MainPage.Current.NotifyUser(ex.Message, NotifyType.ErrorMessage);
            }
            //

            model.ClearEtiquetas();
            LimpiarVista();
        }
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(emplid))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.DYNAMICS, emplid));

            ctx.setEtiquetas("PR", 36, lst);
        }
Ejemplo n.º 3
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(convenio))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.NOMBRE, convenio));

            ctx.setEtiquetas("AF", 13, lst);
        }
Ejemplo n.º 4
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(codpers))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.CODPERS, codpers));

            ctx.setEtiquetas("DO", 11, lst);
        }
Ejemplo n.º 5
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(noregistro))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.NOREGISTRO, noregistro));

            ctx.setEtiquetas("EV", 9, lst);
        }
Ejemplo n.º 6
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (noacta.HasValue == false)
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.FECHA, Convert.ToString(fecha)));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.NOACTA, Convert.ToString(noacta) + "-" + Convert.ToString(anio.Year)));

            ctx.setEtiquetas("AC", 58, lst);
        }
Ejemplo n.º 7
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(carrera) || string.IsNullOrEmpty(comentario))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.CARRERA, carrera));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.COMENTARIOS, comentario));

            ctx.setEtiquetas("DV", 50, lst);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Type s = (Type)e.Parameter;

            FragmentFrame.Navigate(s);

            // Scanner
            model = new EscanerDataContext(s);

            if (!model.ScannerDataContext.WatcherStarted)
            {
                model.ScannerDataContext.StartScannerWatcher();
            }
            model.carpeta = s;
            model.ClearFileList();

            rootPage.DataContext = model;
        }
Ejemplo n.º 9
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(carrera))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.CARNET, carnet));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.CARRERA, carrera));

            ctx.setEtiquetas("AF", 38, lst);
        }
Ejemplo n.º 10
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (correlativo.HasValue == false)
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.FECHA, Convert.ToString(fecha)));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.CORRELATIVO, Convert.ToString(correlativo)));

            ctx.setEtiquetas("BO", 18, lst);
        }
Ejemplo n.º 11
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrWhiteSpace(codpers) || correlativo.HasValue == false)
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.CODPERS, codpers));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.NOSOLICITUD, Convert.ToString(correlativo)));

            ctx.setEtiquetas("IT", 8, lst);
        }
Ejemplo n.º 12
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(nombre) || string.IsNullOrEmpty(convenio) || string.IsNullOrEmpty(facultad))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.FACULTAD, Convert.ToString(facultad)));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.NOMBRE, Convert.ToString(nombre)));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.CATEGORIA, Convert.ToString(convenio)));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.FECHA, Convert.ToString(fecha.Day) + Convert.ToString(fecha.Month) + Convert.ToString(fecha.Year)));

            ctx.setEtiquetas("CO", 17, lst);
        }
Ejemplo n.º 13
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrWhiteSpace(fecha.ToString()))
            {
                fecha = DateTime.Today;
            }

            if (!correlativo.HasValue)
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.NORESOLUCION, Convert.ToString(fecha.Value.Year) + "-" + Convert.ToString(number[Convert.ToInt32(fecha.Value.Month) - 1]) + "-" + Convert.ToString(correlativo)));

            ctx.setEtiquetas("RS", 3, lst);
        }
Ejemplo n.º 14
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(carrera))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Models.Etiquetas.Etiquetas> lst = new List <Models.Etiquetas.Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.CARNET, carnet));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.CARRERA, carrera));

            ctx.setEtiquetas("EX", 1, lst);

            etiquetasFill = true;
            OnPropertyChanged("IsEtiquetasFill");
            model = ctx;
        }
Ejemplo n.º 15
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrEmpty(diploma))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.CARNET, carnet));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.CARRERA, carrera));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.TITULO, diploma));

            if (solicitud.HasValue)
            {
                lst.Add(new Etiquetas((short)Common.Utils.Tags.NOSOLICITUD, Convert.ToString(solicitud)));
            }

            ctx.setEtiquetas("TI", 7, lst);
        }
Ejemplo n.º 16
0
        private async void btnUpdate_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            model = (EscanerDataContext)rootPage.DataContext;
            string valorCaja = txtCaja.Text;

            // Codig de actualizacion de no. de caja
            long IDArchivo = 0;

            if (model.Etiquetas.Count() > 0)
            {
                try
                {
                    Models.Etiquetas.Etiquetas_GetArchivosBindingModel mdl = new Models.Etiquetas.Etiquetas_GetArchivosBindingModel();
                    mdl.Aplicacion = model.Aplicacion;
                    mdl.Categoria  = model.Categoria;
                    mdl.Etiquetas  = model.Etiquetas;

                    IDArchivo = await EtiquetasModel.Get(mdl);
                }
                catch (Exception) { }
            }

            try
            {
                Models.Archivos.Archivos_PostCajaBindingModel modelCaja = new Models.Archivos.Archivos_PostCajaBindingModel();
                modelCaja.IDArchivo = IDArchivo;
                modelCaja.Caja      = valorCaja;

                await ArchivosModel.PostCaja(modelCaja);
            }
            catch (Exception) { }
            //

            model.ClearEtiquetas();
            LimpiarVista();
        }
Ejemplo n.º 17
0
        void LlenarEtiquetas()
        {
            EscanerDataContext ctx = (EscanerDataContext)MainPage.Current.DataContext;

            if (string.IsNullOrWhiteSpace(fecha.ToString()))
            {
                fecha = DateTime.Today;
            }

            if (!numero.HasValue || string.IsNullOrEmpty(resolucion))
            {
                ctx.ClearEtiquetas();

                return;
            }

            List <Etiquetas> lst = new List <Etiquetas>();

            lst.Add(new Etiquetas((short)Common.Utils.Tags.NORESOLUCION, Convert.ToString(resolucion)));
            lst.Add(new Etiquetas((short)Common.Utils.Tags.ADENDA, Convert.ToString(fecha.Value.Year) + "-" + Convert.ToString(numero)));


            ctx.setEtiquetas("RS", 44, lst);
        }