예제 #1
0
        public ModeloBEList GetAllBandeja(Int32 idMarca, String codModelo, String nomModelo, String codEstado, Int32 idUsuario)
        {
            ModeloDA oModeloDA = new ModeloDA();

            try
            {
                return(oModeloDA.GetAllBandejas(idMarca, codModelo, nomModelo, codEstado, idUsuario));
            }
            catch (Exception ex)
            {
                ErrorEvent(this, ex);
            }
            return(null);
        }
예제 #2
0
        public Int32 Eliminar(ModeloBE oModeloBE)
        {
            ModeloDA oModeloDA = new ModeloDA();

            try
            {
                return(oModeloDA.Eliminar(oModeloBE));
            }
            catch (Exception ex)
            {
                ErrorEvent(this, ex);
            }
            return(0);
        }
예제 #3
0
        public ModeloBE GetById(Int32 idModelo)
        {
            ModeloDA oModeloDA = new ModeloDA();

            try
            {
                return(oModeloDA.GetById(idModelo));
            }
            catch (Exception ex)
            {
                ErrorEvent(this, ex);
            }
            return(null);
        }
예제 #4
0
        public Int32 Grabar(ModeloBE oModeloBE)
        {
            ModeloDA oModeloDA = new ModeloDA();

            try
            {
                if (oModeloBE.nid_modelo == 0)
                {
                    return(oModeloDA.Insertar(oModeloBE));
                }
                else
                {
                    return(oModeloDA.Modificar(oModeloBE));
                }
            }
            catch (Exception ex)
            {
                ErrorEvent(this, ex);
            }
            return(0);
        }