예제 #1
0
 private void SetInfo()
 {
     try
     {
         Parametros            = BusParametros.ObtenerObjeto(param.IdEmpresa);
         cmbSucPrinc.EditValue = Parametros.IdSucursal_Princ;
         cmbSucProd.EditValue  = Parametros.IdSucursal_Produccion;
         cmbBodPrinc.EditValue = Parametros.IdBodega_Princ;
         cmbBodProd.EditValue  = Parametros.IdBodega_Produccion;
         cmbMarcaPT.EditValue  = Parametros.IdMarca_ProdTerm;
         cmbProveePT.set_ProveedorInfo(Convert.ToDecimal(Parametros.IdProveedor_ProdTerm));
         cmbCatPT.EditValue       = Parametros.IdCategoria_ProdTerm;
         cmbEstadoAprob.EditValue = Parametros.IdEstadoAprobacion_x_default;
         cmbEProd.EditValue       = Parametros.IdMovi_inven_tipo_egr_consumoprod;
         cmbECtrlProd.EditValue   = Parametros.IdMovi_inven_tipo_egr_ContrlProduccion;
         cmbEConv.EditValue       = Parametros.IdMovi_inven_tipo_egr_Conversion;
         cmbEEnsam.EditValue      = Parametros.IdMovi_inven_tipo_egr_Ensamblado;
         cmbESucPrinc.EditValue   = Parametros.IdMovi_inven_tipo_egr_suc_princ;
         cmbEDesp.EditValue       = Parametros.IdMovi_invent_tipo_egr_Despacho;
         cmbIProd.EditValue       = Parametros.IdMovi_inven_tipo_ing_consumoprod;
         cmbICtrlProd.EditValue   = Parametros.IdMovi_inven_tipo_ing_ContrlProduccion;
         cmbIConv.EditValue       = Parametros.IdMovi_inven_tipo_ing_Conversion;
         cmbIEnsam.EditValue      = Parametros.IdMovi_inven_tipo_ing_Ensamblado;
         cmbISucPrinc.EditValue   = Parametros.IdMovi_inven_tipo_ing_suc_princ;
         cmbIResConv.EditValue    = Parametros.IdMovi_inven_tipo_ingxresid_Conversion;
         cmbTipPrPT.EditValue     = Parametros.IdProductoTipo_ProdTerm;
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
        public frmIn_EgresoInventario_x_Produccion_Mantenimiento()
        {
            try
            {
                InitializeComponent();
                cargacontroles();
                paramCidersus = Busparam.ObtenerObjeto(param.IdEmpresa);

                ctrl_Sucbod.Event_cmb_sucursal_SelectedIndexChanged += ctrl_Sucbod_Event_cmb_sucursal_SelectedIndexChanged;
                //ctrl_Sucbod.Event_cmb_bodega_SelectedIndexChanged += ctrl_Sucbod_Event_cmb_bodega_SelectedIndexChanged;

                UCObra.Event_UCObra_SelectionChanged                    += UCObra_Event_UCObra_SelectionChanged;
                UCObra.Event_UCObra_Validating                          += UCObra_Event_UCObra_Validating;
                ucGe_Menu_Superior_Mant1.event_btnGuardar_Click         += ucGe_Menu_event_btnGuardar_Click;
                ucGe_Menu_Superior_Mant1.event_btnGuardar_y_Salir_Click += ucGe_Menu_event_btnGuardar_y_Salir_Click;
                ucGe_Menu_Superior_Mant1.event_btnSalir_Click           += ucGe_Menu_event_btnSalir_Click;
                ucGe_Menu_Superior_Mant1.event_btnAnular_Click          += ucGe_Menu_event_btnAnular_Click;
                ucGe_Menu_Superior_Mant1.event_btnImprimir_Click        += ucGe_Menu_event_btnImprimir_Click;
                this.event_frmIn_EgresoInventario_x_Produccion_Mantenimiento_FormClosing +=
                    frmIn_EgresoInventario_x_Produccion_Mantenimiento_event_frmIn_EgresoInventario_x_Produccion_Mantenimiento_FormClosing;
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
예제 #3
0
 private Boolean GetInfo()
 {
     try
     {
         Parametros = new prd_parametros_CusCidersus_Info();
         Parametros.IdBodega_Princ                         = Convert.ToInt32(cmbBodPrinc.EditValue);
         Parametros.IdBodega_Produccion                    = Convert.ToInt32(cmbBodProd.EditValue);
         Parametros.IdSucursal_Princ                       = Convert.ToInt32(cmbSucPrinc.EditValue);
         Parametros.IdSucursal_Produccion                  = Convert.ToInt32(cmbSucProd.EditValue);
         Parametros.IdEmpresa                              = param.IdEmpresa;
         Parametros.IdMarca_ProdTerm                       = Convert.ToInt32(cmbMarcaPT.EditValue);
         Parametros.IdProveedor_ProdTerm                   = cmbProveePT.get_ProveedorInfo().IdProveedor;
         Parametros.IdEstadoAprobacion_x_default           = Convert.ToString(cmbEstadoAprob.EditValue);
         Parametros.IdCategoria_ProdTerm                   = Convert.ToString(cmbCatPT.EditValue);
         Parametros.IdMovi_inven_tipo_egr_consumoprod      = Convert.ToInt32(cmbEProd.EditValue);
         Parametros.IdMovi_inven_tipo_egr_ContrlProduccion = Convert.ToInt32(cmbECtrlProd.EditValue);
         Parametros.IdMovi_inven_tipo_egr_Conversion       = Convert.ToInt32(cmbEConv.EditValue);
         Parametros.IdMovi_inven_tipo_egr_Ensamblado       = Convert.ToInt32(cmbEEnsam.EditValue);
         Parametros.IdMovi_inven_tipo_egr_suc_princ        = Convert.ToInt32(cmbESucPrinc.EditValue);
         Parametros.IdMovi_invent_tipo_egr_Despacho        = Convert.ToInt32(cmbEDesp.EditValue);
         Parametros.IdMovi_inven_tipo_ing_consumoprod      = Convert.ToInt32(cmbIProd.EditValue);
         Parametros.IdMovi_inven_tipo_ing_ContrlProduccion = Convert.ToInt32(cmbICtrlProd.EditValue);
         Parametros.IdMovi_inven_tipo_ing_Conversion       = Convert.ToInt32(cmbIConv.EditValue);
         Parametros.IdMovi_inven_tipo_ing_Ensamblado       = Convert.ToInt32(cmbIEnsam.EditValue);
         Parametros.IdMovi_inven_tipo_ing_suc_princ        = Convert.ToInt32(cmbISucPrinc.EditValue);
         Parametros.IdMovi_inven_tipo_ingxresid_Conversion = Convert.ToInt32(cmbIResConv.EditValue);
         Parametros.IdProductoTipo_ProdTerm                = Convert.ToInt32(cmbTipPrPT.EditValue);
         return(true);
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         return(false);
     }
 }
예제 #4
0
        private void Frm_Prd_Movil_Ensamblado_Load(object sender, EventArgs e)
        {
            try
            {
                iAccion                  = Cl_Enumeradores.eTipo_action.grabar;
                paramCidersus            = Busparam.ObtenerObjeto(param.IdEmpresa);
                _sucursalInfo.IdEmpresa  = _bodegaInfo.IdEmpresa = param.IdEmpresa;
                _sucursalInfo.IdSucursal = _bodegaInfo.IdSucursal = paramCidersus.IdSucursal_Produccion;
                _bodegaInfo.IdBodega     = paramCidersus.IdBodega_Produccion;

                cargacontroles();
                //cargacombos();

                UCSuc_Bod.Event_cmb_bodega_SelectedIndexChanged   += new UCIn_Sucursal_Bodega.delegate_cmb_bodega_SelectedIndexChanged(UCSuc_Bod_Event_cmb_bodega_SelectedIndexChanged);
                UCSuc_Bod.Event_cmb_sucursal_SelectedIndexChanged += new UCIn_Sucursal_Bodega.delegate_cmb_sucursal_SelectedIndexChanged(UCSuc_Bod_Event_cmb_sucursal_SelectedIndexChanged);
                UCObra.Event_UCObra_SelectionChanged
                    += new UCPrd_Obra.delegadoUCObra_SelectionChanged(UCObra_Event_UCObra_SelectionChanged);
                UCObra.Event_UCObra_Validating += new UCPrd_Obra.delegadoUCObra_Validating(UCObra_Event_UCObra_Validating);

                Event_Frm_Prd_Movil_Ensamblado_FormClosing += Frm_Prd_Movil_Ensamblado_Event_Frm_Prd_Movil_Ensamblado_FormClosing;
                gridCtrlEnsamblado.DataSource = BindLst;
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
예제 #5
0
        public Boolean GuardarDB(prd_parametros_CusCidersus_Info Info)
        {
            try
            {
                List <prd_parametros_CusCidersus_Info> Lst = new List <prd_parametros_CusCidersus_Info>();
                using (EntitiesProduccion_Cidersus Context = new EntitiesProduccion_Cidersus())
                {
                    var Address = new prd_parametros_CusCidersus();

                    Address.IdEmpresa                              = Info.IdEmpresa;
                    Address.IdSucursal_Princ                       = Info.IdSucursal_Princ;
                    Address.IdBodega_Princ                         = Info.IdBodega_Princ;
                    Address.IdSucursal_Produccion                  = Info.IdSucursal_Produccion;
                    Address.IdBodega_Produccion                    = Info.IdBodega_Produccion;
                    Address.IdMovi_inven_tipo_ing_suc_princ        = Info.IdMovi_inven_tipo_ing_suc_princ;
                    Address.IdMovi_inven_tipo_egr_suc_princ        = Info.IdMovi_inven_tipo_egr_suc_princ;
                    Address.IdMovi_inven_tipo_egr_consumoprod      = Info.IdMovi_inven_tipo_egr_consumoprod;
                    Address.IdMovi_inven_tipo_ing_consumoprod      = Info.IdMovi_inven_tipo_ing_consumoprod;
                    Address.IdMovi_inven_tipo_ing_ContrlProduccion = Info.IdMovi_inven_tipo_ing_ContrlProduccion;
                    Address.IdMovi_inven_tipo_egr_ContrlProduccion = Info.IdMovi_inven_tipo_egr_ContrlProduccion;
                    Address.IdMovi_inven_tipo_egr_Conversion       = Info.IdMovi_inven_tipo_egr_Conversion;
                    Address.IdMovi_inven_tipo_ing_Conversion       = Info.IdMovi_inven_tipo_ing_Conversion;
                    Address.IdMovi_inven_tipo_egr_Ensamblado       = Info.IdMovi_inven_tipo_egr_Ensamblado;
                    Address.IdMovi_inven_tipo_ing_Ensamblado       = Info.IdMovi_inven_tipo_ing_Ensamblado;
                    Address.IdMovi_inven_tipo_ingxresid_Conversion = Info.IdMovi_inven_tipo_ingxresid_Conversion;
                    Address.IdMovi_invent_tipo_egr_Despacho        = Info.IdMovi_invent_tipo_egr_Despacho;
                    Address.IdEstadoAprobacion_x_default           = Info.IdEstadoAprobacion_x_default;
                    Address.IdProductoTipo_ProdTerm                = Info.IdProductoTipo_ProdTerm;
                    Address.IdCategoria_ProdTerm                   = Info.IdCategoria_ProdTerm;
                    Address.IdProveedor_ProdTerm                   = Info.IdProveedor_ProdTerm;
                    Address.IdMarca_ProdTerm                       = Info.IdMarca_ProdTerm;

                    Address.idTipo_Produto_Elemento     = Info.idTipo_Produto_Elemento;
                    Address.IdProductoTipo_MateriaPrima = Info.IdProductoTipo_MateriaPrima;
                    Address.IdMoviInicio = Info.IdMoviInicio;

                    Context.prd_parametros_CusCidersus.Add(Address);
                    Context.SaveChanges();
                }
                return(true);
            }
            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());
            }
        }
예제 #6
0
        public List <prd_parametros_CusCidersus_Info> ConsultaGeneral()
        {
            try
            {
                List <prd_parametros_CusCidersus_Info> Lst   = new List <prd_parametros_CusCidersus_Info>();
                EntitiesProduccion_Cidersus            oEnti = new EntitiesProduccion_Cidersus();
                var Query = from q in oEnti.prd_parametros_CusCidersus
                            select q;
                foreach (var item in Query)
                {
                    prd_parametros_CusCidersus_Info Obj = new prd_parametros_CusCidersus_Info();
                    Obj.IdEmpresa                              = item.IdEmpresa;
                    Obj.IdSucursal_Princ                       = item.IdSucursal_Princ;
                    Obj.IdBodega_Princ                         = item.IdBodega_Princ;
                    Obj.IdSucursal_Produccion                  = item.IdSucursal_Produccion;
                    Obj.IdBodega_Produccion                    = item.IdBodega_Produccion;
                    Obj.IdMovi_inven_tipo_ing_suc_princ        = Convert.ToInt32(item.IdMovi_inven_tipo_ing_suc_princ);
                    Obj.IdMovi_inven_tipo_egr_suc_princ        = Convert.ToInt32(item.IdMovi_inven_tipo_egr_suc_princ);
                    Obj.IdMovi_inven_tipo_egr_consumoprod      = Convert.ToInt32(item.IdMovi_inven_tipo_egr_consumoprod);
                    Obj.IdMovi_inven_tipo_ing_consumoprod      = Convert.ToInt32(item.IdMovi_inven_tipo_ing_consumoprod);
                    Obj.IdMovi_inven_tipo_ing_ContrlProduccion = Convert.ToInt32(item.IdMovi_inven_tipo_ing_ContrlProduccion);
                    Obj.IdMovi_inven_tipo_egr_ContrlProduccion = Convert.ToInt32(item.IdMovi_inven_tipo_egr_ContrlProduccion);
                    Obj.IdMovi_inven_tipo_egr_Conversion       = Convert.ToInt32(item.IdMovi_inven_tipo_egr_Conversion);
                    Obj.IdMovi_inven_tipo_ing_Conversion       = Convert.ToInt32(item.IdMovi_inven_tipo_ing_Conversion);
                    Obj.IdMovi_inven_tipo_egr_Ensamblado       = Convert.ToInt32(item.IdMovi_inven_tipo_egr_Ensamblado);
                    Obj.IdMovi_inven_tipo_ing_Ensamblado       = Convert.ToInt32(item.IdMovi_inven_tipo_ing_Ensamblado);
                    Obj.IdMovi_inven_tipo_ingxresid_Conversion = Convert.ToInt32(item.IdMovi_inven_tipo_ingxresid_Conversion);
                    Obj.IdMovi_invent_tipo_egr_Despacho        = Convert.ToInt32(item.IdMovi_invent_tipo_egr_Despacho);
                    Obj.IdEstadoAprobacion_x_default           = item.IdEstadoAprobacion_x_default;
                    Obj.IdProductoTipo_ProdTerm                = Convert.ToInt32(item.IdProductoTipo_ProdTerm);
                    Obj.IdCategoria_ProdTerm                   = item.IdCategoria_ProdTerm;
                    Obj.IdProveedor_ProdTerm                   = Convert.ToInt32(item.IdProveedor_ProdTerm);
                    Obj.IdMarca_ProdTerm                       = Convert.ToInt32(item.IdMarca_ProdTerm);
                    Obj.idTipo_Produto_Elemento                = Convert.ToInt32(item.idTipo_Produto_Elemento);
                    Obj.IdProductoTipo_MateriaPrima            = Convert.ToInt32(item.IdProductoTipo_MateriaPrima);
                    Obj.IdMoviInicio                           = item.IdMoviInicio;

                    Lst.Add(Obj);
                }
                return(Lst);
            }
            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());
            }
        }
 public Boolean ModificarDB(prd_parametros_CusCidersus_Info Info)
 {
     try
     {
         return(data.ModificarDB(Info));
     }
     catch (Exception ex)
     {
         Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
         throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "ModificarDB", ex.Message), ex)
               {
                   EntityType = typeof(prd_parametros_CusCidersus_Bus)
               };
     }
 }
예제 #8
0
        public prd_parametros_CusCidersus_Info ObtenerObjeto(int IdEmpresa)
        {
            EntitiesProduccion_Cidersus oEnti = new EntitiesProduccion_Cidersus();

            try
            {
                prd_parametros_CusCidersus_Info Info = new prd_parametros_CusCidersus_Info();
                var Objeto = oEnti.prd_parametros_CusCidersus.FirstOrDefault(var => var.IdEmpresa == IdEmpresa);
                if (Objeto != null)
                {
                    Info.IdEmpresa                              = Objeto.IdEmpresa;
                    Info.IdSucursal_Princ                       = Objeto.IdSucursal_Princ;
                    Info.IdBodega_Princ                         = Objeto.IdBodega_Princ;
                    Info.IdSucursal_Produccion                  = Objeto.IdSucursal_Produccion;
                    Info.IdBodega_Produccion                    = Objeto.IdBodega_Produccion;
                    Info.IdMovi_inven_tipo_ing_suc_princ        = Convert.ToInt32(Objeto.IdMovi_inven_tipo_ing_suc_princ);
                    Info.IdMovi_inven_tipo_egr_suc_princ        = Convert.ToInt32(Objeto.IdMovi_inven_tipo_egr_suc_princ);
                    Info.IdMovi_inven_tipo_egr_consumoprod      = Convert.ToInt32(Objeto.IdMovi_inven_tipo_egr_consumoprod);
                    Info.IdMovi_inven_tipo_ing_consumoprod      = Convert.ToInt32(Objeto.IdMovi_inven_tipo_ing_consumoprod);
                    Info.IdMovi_inven_tipo_ing_ContrlProduccion = Convert.ToInt32(Objeto.IdMovi_inven_tipo_ing_ContrlProduccion);
                    Info.IdMovi_inven_tipo_egr_ContrlProduccion = Convert.ToInt32(Objeto.IdMovi_inven_tipo_egr_ContrlProduccion);
                    Info.IdMovi_inven_tipo_egr_Conversion       = Convert.ToInt32(Objeto.IdMovi_inven_tipo_egr_Conversion);
                    Info.IdMovi_inven_tipo_ing_Conversion       = Convert.ToInt32(Objeto.IdMovi_inven_tipo_ing_Conversion);
                    Info.IdMovi_inven_tipo_egr_Ensamblado       = Convert.ToInt32(Objeto.IdMovi_inven_tipo_egr_Ensamblado);
                    Info.IdMovi_inven_tipo_ing_Ensamblado       = Convert.ToInt32(Objeto.IdMovi_inven_tipo_ing_Ensamblado);
                    Info.IdMovi_inven_tipo_ingxresid_Conversion = Convert.ToInt32(Objeto.IdMovi_inven_tipo_ingxresid_Conversion);
                    Info.IdMovi_invent_tipo_egr_Despacho        = Convert.ToInt32(Objeto.IdMovi_invent_tipo_egr_Despacho);
                    Info.IdEstadoAprobacion_x_default           = Objeto.IdEstadoAprobacion_x_default;
                    Info.IdProductoTipo_ProdTerm                = Convert.ToInt32(Objeto.IdProductoTipo_ProdTerm);
                    Info.IdCategoria_ProdTerm                   = Objeto.IdCategoria_ProdTerm;
                    Info.IdProveedor_ProdTerm                   = Convert.ToInt32(Objeto.IdProveedor_ProdTerm);
                    Info.IdMarca_ProdTerm                       = Convert.ToInt32(Objeto.IdMarca_ProdTerm);
                    Info.idTipo_Produto_Elemento                = Convert.ToInt16(Objeto.idTipo_Produto_Elemento);
                    Info.IdProductoTipo_MateriaPrima            = Convert.ToInt32(Objeto.IdProductoTipo_MateriaPrima);
                    Info.IdMoviInicio                           = Objeto.IdMoviInicio;
                }
                return(Info);
            }
            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());
            }
        }
예제 #9
0
 public FrmPrd_ListadoMaterialesMant()
 {
     try
     {
         InitializeComponent();
         ucGe_Menu_Superior_Mant1.event_btnGuardar_Click         += ucGe_Menu_event_btnGuardar_Click;
         ucGe_Menu_Superior_Mant1.event_btnGuardar_y_Salir_Click += ucGe_Menu_event_btnGuardar_y_Salir_Click;
         ucGe_Menu_Superior_Mant1.event_btnImprimir_Click        += ucGe_Menu_event_btnImprimir_Click;
         ucGe_Menu_Superior_Mant1.event_btnSalir_Click           += ucGe_Menu_event_btnSalir_Click;
         ucGe_Menu_Superior_Mant1.event_btnAnular_Click          += ucGe_Menu_event_btnAnular_Click;
         _Parametros_Info = param_Produccion.ObtenerObjeto(param.IdEmpresa);
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
 public frmIn_EgresoInventario_x_Produccion_x_Obra_Consulta()
 {
     try
     {
         InitializeComponent();
         param_Cidersus = busParamCid.ObtenerObjeto(param.IdEmpresa);
         ucGe_Menu_Mantenimiento_x_usuario.event_btnAnular_ItemClick    += ucGe_Menu_Mantenimiento_x_usuario_event_btnAnular_ItemClick;
         ucGe_Menu_Mantenimiento_x_usuario.event_btnBuscar_Click        += ucGe_Menu_Mantenimiento_x_usuario_event_btnBuscar_Click;
         ucGe_Menu_Mantenimiento_x_usuario.event_btnconsultar_ItemClick += ucGe_Menu_Mantenimiento_x_usuario_event_btnconsultar_ItemClick;
         ucGe_Menu_Mantenimiento_x_usuario.event_btnImprimir_ItemClick  += ucGe_Menu_Mantenimiento_x_usuario_event_btnImprimir_ItemClick;
         ucGe_Menu_Mantenimiento_x_usuario.event_btnNuevo_ItemClick     += ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick;
         ucGe_Menu_Mantenimiento_x_usuario.event_btnSalir_ItemClick     += ucGe_Menu_Mantenimiento_x_usuario_event_btnSalir_ItemClick;
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
     }
 }
예제 #11
0
        public FrmPrd_ConversionProducto()
        {
            try
            {
                InitializeComponent();
                dtpFecha.EditValue            = DateTime.Now;
                cmbObra.Properties.DataSource = BusOBra.ObtenerListaObra(param.IdEmpresa);
                _Parametros_Info = param_Produccion.ObtenerObjeto(param.IdEmpresa);



                ucGe_Menu.event_btnSalir_Click  += ucGe_Menu_event_btnSalir_Click;
                ucGe_Menu.event_btnAnular_Click += ucGe_Menu_event_btnAnular_Click;


                _Accion = Cl_Enumeradores.eTipo_action.grabar;
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString());
            }
        }
예제 #12
0
        private void FrmPrd_EnsambladoProductoFinal_Mantenimiento_Load(object sender, EventArgs e)
        {
            try
            {
                paramCidersus            = Busparam.ObtenerObjeto(param.IdEmpresa);
                _sucursalInfo.IdEmpresa  = _bodegaInfo.IdEmpresa = param.IdEmpresa;
                _sucursalInfo.IdSucursal = _bodegaInfo.IdSucursal = paramCidersus.IdSucursal_Produccion;
                _bodegaInfo.IdBodega     = paramCidersus.IdBodega_Produccion;

                cargacontroles();
                //cargacombos();

                UCSuc_Bod.Event_cmb_bodega_SelectedIndexChanged   += new UCIn_Sucursal_Bodega.delegate_cmb_bodega_SelectedIndexChanged(UCSuc_Bod_Event_cmb_bodega_SelectedIndexChanged);
                UCSuc_Bod.Event_cmb_sucursal_SelectedIndexChanged += new UCIn_Sucursal_Bodega.delegate_cmb_sucursal_SelectedIndexChanged(UCSuc_Bod_Event_cmb_sucursal_SelectedIndexChanged);
                UCObra.Event_UCObra_SelectionChanged
                    += new UCPrd_Obra.delegadoUCObra_SelectionChanged(UCObra_Event_UCObra_SelectionChanged);
                UCObra.Event_UCObra_Validating += new UCPrd_Obra.delegadoUCObra_Validating(UCObra_Event_UCObra_Validating);
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }