Beispiel #1
0
 private void gridViewDisenioReport_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         _Info = GetSelectedRow((DevExpress.XtraGrid.Views.Grid.GridView)sender);
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #2
0
        public XCXP_Rpt015_frm(vwtb_sis_Documento_Tipo_x_Disenio_Report_Info Info)
        {
            InitializeComponent();
            commandBarItem31.PerformClick();
            XCXP_Rpt015_rpt reporte = new XCXP_Rpt015_rpt();

            InfoDoc_x_Emp = busDoc_x_Emp.get_DisenioRpt(Info.IdEmpresa, Info.codDocumentoTipo);
            if (InfoDoc_x_Emp.File_Disenio_Reporte != null)
            {
                File.WriteAllBytes(RootReporte, InfoDoc_x_Emp.File_Disenio_Reporte);
                reporte.LoadLayout(RootReporte);
            }

            InfoDoc_x_Emp.IdEmpresa        = Info.IdEmpresa;
            InfoDoc_x_Emp.codDocumentoTipo = Info.codDocumentoTipo;

            xrDesignDockManager1.XRDesignPanel.OpenReport(reporte);
        }
        public List <vwtb_sis_Documento_Tipo_x_Disenio_Report_Info> Get_List_sis_Documento_Tipo_x_Disenio_Report(int IdEmpresa, string ApareceCombo_FileReporte)
        {
            try
            {
                List <vwtb_sis_Documento_Tipo_x_Disenio_Report_Info> lstDoc = new List <vwtb_sis_Documento_Tipo_x_Disenio_Report_Info>();

                using (EntitiesGeneral listado = new EntitiesGeneral())
                {
                    var select = from q in listado.vwtb_sis_Documento_Tipo_x_Disenio_Report
                                 where q.IdEmpresa == IdEmpresa &&
                                 q.ApareceCombo_FileReporte == ApareceCombo_FileReporte
                                 select q;

                    foreach (var item in select)
                    {
                        vwtb_sis_Documento_Tipo_x_Disenio_Report_Info Info = new vwtb_sis_Documento_Tipo_x_Disenio_Report_Info();
                        Info.IdEmpresa                = item.IdEmpresa;
                        Info.codDocumentoTipo         = item.codDocumentoTipo;
                        Info.descripcion              = item.descripcion;
                        Info.File_Disenio_Reporte     = item.File_Disenio_Reporte;
                        Info.ApareceCombo_FileReporte = item.ApareceCombo_FileReporte;

                        lstDoc.Add(Info);
                    }
                }

                return(lstDoc);
            }
            catch (Exception ex)
            {
                string arreglo = ToString();
                tb_sis_Log_Error_Vzen_Data oDataLog      = new tb_sis_Log_Error_Vzen_Data();
                tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "",
                                                                                          "", "", "", "", DateTime.Now);
                oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje);
                mensaje = ex.InnerException + " " + ex.Message;
                throw new Exception(ex.InnerException.ToString());
            }
        }