Exemplo n.º 1
0
        public static string Eliminar(int idebodega, string nombrebodega, string direccion, int responsable)
        {
            D_Bodega Datos = new D_Bodega();
            E_Bodega Obj   = new E_Bodega();

            Obj.idebodega    = idebodega;
            Obj.nombrebodega = nombrebodega;
            Obj.direccion    = direccion;
            Obj.responsable  = responsable;
            return(Datos.Eliminar(Obj));
        }
Exemplo n.º 2
0
        public static string Insertar(string nombrebodega, string direccion, int responsable)
        {
            D_Bodega Datos = new D_Bodega();

            string Existe = Datos.Existe(nombrebodega);

            if (Existe.Equals("1"))
            {
                return(nombrebodega = "Bodega YA Existe");
            }
            else
            {
                E_Bodega Obj = new E_Bodega();
                Obj.nombrebodega = nombrebodega;
                Obj.direccion    = direccion;
                Obj.responsable  = responsable;
                return(Datos.Insertar(Obj));
            }
        }
Exemplo n.º 3
0
        public static DataTable Buscar(string Valor)
        {
            D_Bodega Datos = new D_Bodega();

            return(Datos.Buscar(Valor));
        }
Exemplo n.º 4
0
        public static DataTable Seleccionar()
        {
            D_Bodega Datos = new D_Bodega();

            return(Datos.Seleccionar());
        }
Exemplo n.º 5
0
        public static DataTable Listar()
        {
            D_Bodega Datos = new D_Bodega();

            return(Datos.Listar());
        }