public frmIn_Ajuste_Inventario_fisico()
        {
            try
            {
                InitializeComponent();

                Ctrl_SucBod.Event_cmb_sucursal_SelectionChangeCommitted += new UCIn_Sucursal_Bodega.delegate_cmb_sucursal_SelectionChangeCommitted(Ctrl_SucBod_Event_cmb_sucursal_SelectionChangeCommitted);
                Ctrl_SucBod.Event_cmb_bodega_SelectionChangeCommitted   += new UCIn_Sucursal_Bodega.delegate_cmb_bodega_SelectionChangeCommitted(Ctrl_SucBod_Event_cmb_bodega_SelectionChangeCommitted);
                in_Catalogo_Bus  BusCata = new in_Catalogo_Bus();
                in_Parametro_Bus parametrosInventari_B = new in_Parametro_Bus();
                var parmetros_I = parametrosInventari_B.ObtenerParametros(param.IdEmpresa);
                cmbEstadoAprob.DataSource = BusCata.ConsultaxTipoCatalogo(1);
                if (parmetros_I.ApruebaAjusteFisicoAuto == "S")
                {
                    cmbEstadoAprob.SelectedValue = "APRO";
                }
                else
                {
                    cmbEstadoAprob.SelectedValue = "XAPRO";
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
        private void frmIn_CategoriaMantenimiento_Load(object sender, EventArgs e)
        {
            try
            {
                var info = bus.ObtenerParametros(param.IdEmpresa);
                UCI.set_Treelist_SelectMultiple(false);
                UCI.set_Treelist_ShowCheckBoxes(true);
                UCI.set_Solo_chequea_unItem(true);
                this.groupBox1.Controls.Add(UCI);
                UCI.Dock = DockStyle.Fill;
                UCI.set_CategoriaCheckedSelection(_categoriaInfoPadre);

                ctrl_ctasContables      = new UCIN_CtsContablesParaContabilizar(info.IdCtaCble_Inven, info.IdCentro_Costo_Inventario, info.IdCtaCble_CostoInven, info.IdCentro_Costo_Costo);
                ctrl_ctasContables.Dock = DockStyle.Fill;
                tabPage2.Controls.Add(ctrl_ctasContables);



                switch (Accion)
                {
                case Cl_Enumeradores.eTipo_action.grabar:
                    break;

                case Cl_Enumeradores.eTipo_action.actualizar:
                    ctrl_ctasContables.setValores(infoCat.IdCtaCtble_Inve, infoCat.IdCentro_Costo_Inventario, infoCat.IdCtaCtble_Costo, infoCat.IdCentro_Costo_Costo);
                    break;

                case Cl_Enumeradores.eTipo_action.borrar:
                    ctrl_ctasContables.setValores(infoCat.IdCtaCtble_Inve, infoCat.IdCentro_Costo_Inventario, infoCat.IdCtaCtble_Costo, infoCat.IdCentro_Costo_Costo);
                    break;

                case Cl_Enumeradores.eTipo_action.consultar:
                    ctrl_ctasContables.setValores(infoCat.IdCtaCtble_Inve, infoCat.IdCentro_Costo_Inventario, infoCat.IdCtaCtble_Costo, infoCat.IdCentro_Costo_Costo);
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
Example #3
0
        public frmIn_AjustesInven_Mant()
        {
            try
            {
                InitializeComponent();


                UCSucurBod.Event_cmb_sucursal_SelectionChangeCommitted += new UCIn_Sucursal_Bodega.delegate_cmb_sucursal_SelectionChangeCommitted(UCSucurBod_Event_cmb_sucursal_SelectionChangeCommitted);
                UCSucurBod.Event_cmb_bodega_SelectionChangeCommitted   += new UCIn_Sucursal_Bodega.delegate_cmb_bodega_SelectionChangeCommitted(UCSucurBod_Event_cmb_bodega_SelectionChangeCommitted);

                this.panelSucursal_bodega.Controls.Add(UCSucurBod);
                UCSucurBod.TipoCarga = Cl_Enumeradores.eTipoFiltro.Normal;
                UCSucurBod.Dock      = DockStyle.Fill;


                UCGridDetalleProduc.idBodega   = 1;
                UCGridDetalleProduc.idSucursal = 1;
                this.panelDetalleProducto.Controls.Add(UCGridDetalleProduc);
                UCGridDetalleProduc.Dock = DockStyle.Fill;

                UCCentroCosto.cargaCmb_centroCostos();
                //panelCentroCosto.Controls.Add(UCCentroCosto);
                UCCentroCosto.Dock = DockStyle.Fill;
                UCCentroCosto.Event_ultraComboE_CentroCosto_SelectionChanged += new UCCon_CentroCosto.delegateultraComboE_CentroCosto_SelectionChanged(UCCentroCosto_Event_ultraComboE_CentroCosto_SelectionChanged);;

                UCGridDetalleProduc.VisibleCodigo        = true;
                UCGridDetalleProduc.VisibleCosto         = true;
                UCGridDetalleProduc.VisiblePeso          = true;
                UCGridDetalleProduc.VisibleStockAnterior = true;
                UCGridDetalleProduc.VisibleStock         = true;


                //kft
                UCGridDetalleProduc._tipomovi = UCInv_Grid_Movi_Detalle.eTipoMovi.Ingreso;
                InfoParametro = BusParametro.ObtenerParametros(param.IdEmpresa);
                UCGridDetalleProduc.ValidaStock = (InfoParametro.Maneja_Stock_Negativo == "S") ? false : true;
                //kft
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }