Beispiel #1
0
        public prd_EficienciaPiezas_Rpt_Info ObtenerReporte(int idempresa, int idsucursal, string IdCentroCosto)
        {
            try
            {
                prd_EficienciaPiezas_Rpt_Info Datos = new prd_EficienciaPiezas_Rpt_Info();

                //tb_Empresa_Data Empresa_D = new tb_Empresa_Data();
                //ct_Centro_costo_Data CentroCosto_D = new ct_Centro_costo_Data();
                //prd_OrdenTaller_Data OrdenTaller_D = new prd_OrdenTaller_Data();

                //Datos.Empresa = Empresa_D.ObtenerEmpresa(idempresa);
                //Datos.InfoCentroCosto = CentroCosto_D.ObtenerUnCentroCosto(idempresa, IdCentroCosto);
                //Datos.LmOrdenTaller = OrdenTaller_D.ObtenerListaOT_x_CentroCosto(idempresa, IdCentroCosto);

                return(Datos);
            }
            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);
                mensaje = ex.ToString() + " " + ex.Message;
                oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje);
                throw new Exception(ex.ToString());
            }
        }
Beispiel #2
0
        private void btn_Generar_Click(object sender, EventArgs e)
        {
            try
            {
                //XRpt_Eficiencia = new XRpt_prd_EficienciaPiezas();

                InfoEf = busEf.ObtenerReporte(param.IdEmpresa, param.IdSucursal, UCCentroCosto.get_item());

                LstEf.Clear();
                LstEf.Add(InfoEf);
                //XRpt_Eficiencia.cargaData(LstEf.ToArray(), param.IdUsuario);

                //printControlEficienciaPiezas.PrintingSystem = XRpt_Eficiencia.PrintingSystem;
                //XRpt_Eficiencia.CreateDocument();
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }