Пример #1
0
        public static string usp_ReporteTicketPesada(string idTicketPesada)
        {
            string response = String.Empty;

            if (idTicketPesada.Equals(String.Empty))
            {
                idTicketPesada = "0";
            }

            try
            {
                var lst = _ticketPesadaClient.usp_ReporteTicketPesada(idTicketPesada).ToList();
                Application.Current.Resources["Dt_Reporte"]      = lst;
                Application.Current.Resources["NombreReporte"]   = "rptFormTicketPesada.rdlc";
                Application.Current.Resources["TipoDoc_Reporte"] = "TP";
                SGOTouch.Reporte.Reporte objRpt = new SGOTouch.Reporte.Reporte();
                objRpt.Show();
            }
            catch (Exception ex)
            {
                response = string.Empty;
            }

            return(response);
        }
Пример #2
0
        public static string usp_ReporteGuiaIngreso(string IdGuia)
        {
            string response = String.Empty;

            if (IdGuia.Equals(String.Empty))
            {
                IdGuia = "0";
            }
            try
            {
                var lst = _GuiaIngresoZonaClient.usp_ReporteGuiaIngreso(IdGuia).ToList();
                Application.Current.Resources["Dt_Reporte"]      = lst;
                Application.Current.Resources["NombreReporte"]   = "rptFormGuiaIngresoZona.rdlc";
                Application.Current.Resources["TipoDoc_Reporte"] = "GI";
                SGOTouch.Reporte.Reporte objRpt = new SGOTouch.Reporte.Reporte();
                objRpt.Show();
            }
            catch (Exception ex)
            {
                response = string.Empty;
            }
            return(response);
        }
Пример #3
0
        private void btnImprimir_Click(object sender, RoutedEventArgs e)
        {
            if (lblHiddenIdGuia.Content == null || lblHiddenIdGuia.Content.ToString() == "")
            {
                return;
            }
            string IdGuia = lblHiddenIdGuia.Content.ToString();

            try
            {
                var lst = _GuiaIngresoZonaClient.usp_ReporteGuiaIngreso(IdGuia).ToList();
                Application.Current.Resources["Dt_Reporte"]      = lst;
                Application.Current.Resources["NombreReporte"]   = "rptFormGuiaIngresoZona.rdlc";
                Application.Current.Resources["TipoDoc_Reporte"] = "GI";


                SGOTouch.Reporte.Reporte objRpt = new SGOTouch.Reporte.Reporte();
                objRpt.Show();
            }
            catch (Exception ex)
            {
            }
        }