Example #1
0
 private void cmbSucursal_ValueChanged(object sender, EventArgs e)
 {
     try
     {
         if (ucGe_Sucursal_combo1.get_SucursalInfo().IdSucursal != null)
         {
             if (Obra.get_item_info() != null)
             {
                 //UltraCmbOrdenTaller.Properties.DataSource = BUSOT.ObtenerListaOT_x_CentroCosto(param.IdEmpresa, Obra.get_item());
                 //BUSOT.ObtenerListaOT(param.IdEmpresa).FindAll(var => var.IdSucursal == ucGe_Sucursal_combo1.get_SucursalInfo().IdSucursal && var.CodObra == Obra.get_item());
                 ////UltraCmbOrdenTaller.DisplayMember = "Codigo";
                 ////UltraCmbOrdenTaller.ValueMember = "IdOrdenTaller";
                 //UltraCmbOrdenTaller.Text = "";
             }
             else
             {
                 setearcampos();
             }
         }
         else
         {
             setearcampos();
         }
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
Example #2
0
 void Obra_Event_UCObra_SelectionChanged(object sender, EventArgs e)
 {
     try
     {
         if (ucGe_Sucursal_combo1.get_SucursalInfo().IdSucursal != null)
         {
             if (Obra.get_item_info() != null)
             {
                 // UltraCmbOrdenTaller.Properties.DataSource = BUSOT.ObtenerListaOT(param.IdEmpresa).FindAll(var =>
                 //var.IdSucursal == ucGe_Sucursal_combo1.get_SucursalInfo().IdSucursal && var.CodObra == Obra.get_item());
             }
             else
             {
                 setearcampos();
             }
         }
         else
         {
             setearcampos();
         }
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
Example #3
0
 void cargar_grids()
 {
     try
     {
         if (ucGe_Sucursal_combo1.get_SucursalInfo().IdSucursal != null)
         {
             if (Obra.get_item_info() != null)
             {
                 ListInfoListadoElementosDet_x_Obra        = BusListadoElementosDet.Get_List_ListadoElementos_x_OT_Det(param.IdEmpresa, Obra.get_item());
                 gridCtrlDetListMaterialesxObra.DataSource = ListInfoListadoElementosDet_x_Obra;
                 gridvwDetListMaterialesxObra.ExpandAllGroups();
                 //cargagrid_InventarioFisico();
                 carga_MPPreasignado_x_Obra();
             }
             else
             {
                 setearcampos();
             }
         }
         else
         {
             setearcampos();
         }
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
        void Obra_Event_UCObra_EditValueChanged(object sender, EventArgs e)
        {
            try
            {
                Limpiar();
                if (ucGe_Sucursal_combo1.get_SucursalInfo().IdSucursal != null)
                {
                    if (Obra.get_item_info() != null)
                    {
                        ListInfoListadoElementosDet_x_Obra = BusListadoElementosDet.Get_List_ListadoElementos_x_OT_Det(param.IdEmpresa, Obra.get_item());
                        gridCtrlDetListMaterialesDisponiblesxObra.DataSource = ListInfoListadoElementosDet_x_Obra;

                        //cargagrid_InventarioFisico();
                    }
                    else
                    {
                        setearcampos();
                    }
                }
                else
                {
                    setearcampos();
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
Example #5
0
        void Obra_Event_UCObra_EditValueChanged(object sender, EventArgs e)
        {
            try
            {
                if (ucGe_Sucursal_combo1.get_SucursalInfo().IdSucursal != null)
                {
                    if (Obra.get_item_info() != null)
                    {
                        //UltraCmbOrdenTaller.DataSource = BUSOT.ObtenerListaOT_x_CentroCosto(param.IdEmpresa, Obra.get_item());
                        //BUSOT.ObtenerListaOT(param.IdEmpresa).FindAll(var => var.IdSucursal == Convert.ToInt32(cmbSucursal.Value) && var.CodObra == Obra.get_item());



                        //UltraCmbOrdenTaller.Properties.DataSource = BUSOT.ObtenerListaOT(param.IdEmpresa).FindAll(var =>
                        //    var.IdSucursal == Convert.ToInt32(cmbSucursal.Value) && var.CodObra == Obra.get_item());

                        //UltraCmbOrdenTaller.DisplayMember = "Codigo";
                        //UltraCmbOrdenTaller.ValueMember = "IdOrdenTaller";
                        //UltraCmbOrdenTaller.Text = "";



                        // InfoOT = listOrdTaller.FirstOrDefault(v => v.IdEmpresa == param.IdEmpresa && v.IdSucursal == Convert.ToInt32(cmbSucursal.Value)&& v.IdOrdenTaller==item);



                        //InfoOT = (prd_OrdenTaller_Info)UltraCmbOrdenTaller.Properties.View.GetFocusedRow();//.ListObject


                        //InfoOT = BUSOT.ObtenerUnaOT(param.IdEmpresa, param.IdSucursal, (decimal)UltraCmbOrdenTaller.Value , Obra.get_item());
                    }
                    else
                    {
                        setearcampos();
                    }
                }
                else
                {
                    setearcampos();
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
Example #6
0
        void ucGe_Menu_event_btnImprimir_Click(object sender, EventArgs e)
        {
            try
            {
                //gridControlObra.ShowPrintPreview();
                string leftColumn = "Fecha: [Date Printed][Time Printed]"
                                    + " Obra: " + Obra.get_item_info().Descripcion;
                string middleColumn = "Página:[Page # of Pages #]";
                string rightColumn  = "Usuario:" + param.IdUsuario;

                //Create a PageHeaderFooter object and initializing it with
                //the link's PageHeaderFooter.

                PageHeaderFooter phf = printableComponentLink1.PageHeaderFooter as PageHeaderFooter;

                //Clear the PageHeaderFooter's contents.
                phf.Header.Content.Clear();
                phf.Footer.Content.Clear();
                Font fte = new System.Drawing.Font("Tahoma", 8.5f, FontStyle.Bold, GraphicsUnit.Point);

                // Add custom information to the link's header.
                phf.Header.Font = fte;
                phf.Footer.Font = fte;
                phf.Header.Content.AddRange(new string[] { leftColumn, "", rightColumn, "hola" });
                phf.Header.LineAlignment = BrickAlignment.Center;
                phf.Footer.Content.AddRange(new string[] { "", "", middleColumn });
                phf.Footer.LineAlignment          = BrickAlignment.Center;
                printableComponentLink1.Landscape = true;

                printableComponentLink1.Component = gridCtrlDetListMaterialesDisponibles_PreAsignado_a_Obra;

                printableComponentLink1.ShowPreview();
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
Example #7
0
 private void cmbSucursal_ValueChanged(object sender, EventArgs e)
 {
     try
     {
         if (ucGe_Sucursal_combo1.get_SucursalInfo().IdSucursal != null)
         {
             if (Obra.get_item_info() != null)
             {
             }
             else
             {
                 setearcampos();
             }
         }
         else
         {
             setearcampos();
         }
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }