示例#1
0
        private string Eliminar(int id_request_status)
        {
            EstatusSolicitudBonosCOM bono = new EstatusSolicitudBonosCOM();
            string vmensaje = bono.Eliminar(id_request_status);

            return(vmensaje);
        }
示例#2
0
        private string Editar(requests_status id_request_status)
        {
            EstatusSolicitudBonosCOM bono = new EstatusSolicitudBonosCOM();
            string vmensaje = bono.Editar(id_request_status);

            return(vmensaje);
        }
        private void Cargar_Tipo_Estatus()
        {
            EstatusSolicitudBonosCOM Estatus = new EstatusSolicitudBonosCOM();
            DataTable dt = new DataTable();

            dt = Estatus.SelectAll();
            ddlEstatus.DataValueField = "id_request_status";
            ddlEstatus.DataTextField  = "name";
            ddlEstatus.DataSource     = dt;
            ddlEstatus.DataBind();
            ddlEstatus.Items.Insert(0, "Seleccione un estatus");
            ddlEstatus.Visible = true;
        }
示例#4
0
        private requests_status Getestatus(int id_request_status)
        {
            requests_status dt = new requests_status();

            try
            {
                EstatusSolicitudBonosCOM getct = new EstatusSolicitudBonosCOM();
                dt = getct.estatus(id_request_status);
            }
            catch (Exception)
            {
                dt = null;
            }
            return(dt);
        }
示例#5
0
        private DataTable GetAllestatus()
        {
            DataTable dt = new DataTable();

            try
            {
                EstatusSolicitudBonosCOM getall = new EstatusSolicitudBonosCOM();
                dt = getall.SelectAll();
            }
            catch (Exception ex)
            {
                dt = new DataTable();
            }
            return(dt);
        }