This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db opened for search button | |
User searched for "101" | |
Print out of query "SELECT * FROM RoomManagement WHERE (RoomNum) VALUES (:RoomNum)" | |
if it fails here its your sql query not the application connection to db no need to check if the db is open it is 1122 "No query Unable to fetch row" | |
end of create function 1125 | |
Database closed mainwindow.cpp mainwindow::mainwindow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void roomManagementDialog::on_editRoomSearchBTN_clicked() | |
{ | |
MainWindow conn; | |
QSqlQueryModel * model=new QSqlQueryModel(); | |
QSqlQueryModel * model2=new QSqlQueryModel(); | |
conn.openDB(); | |
qDebug() << "db opened for search button"; | |
QSqlQuery* qry=new QSqlQuery(conn.myDB); | |
QSqlQuery* qry2=new QSqlQuery(conn.myDB); | |
QString SearchQry; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "roommanagementdialog.h" | |
#include "ui_roommanagementdialog.h" | |
roomManagementDialog::roomManagementDialog(QWidget *parent) : | |
QDialog(parent), | |
ui(new Ui::roomManagementDialog) | |
{ | |
ui->setupUi(this); | |
//For using public slots from mainwindow.h | |
MainWindow conn; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mainwindow.h" | |
#include "ui_mainwindow.h" | |
#include <QtWidgets> | |
#include <QDateTime> | |
#include <QTimer> | |
#define Path_to_DB "/home/ghostly/Desktop/projects/Business Development /HMS/APPLICATIONS/Database/HMSSecureD" | |
MainWindow::MainWindow(QWidget *parent) : | |
QMainWindow(parent), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set up for the date and time labels | |
QTimer *timer = new QTimer(this); | |
connect(timer, SIGNAL(timeout()), this, SLOT(showTime())); | |
timer->start(1000); | |
showTime(); | |
QDateTime dateTime = dateTime.currentDateTime(); | |
QString dateTimeString = dateTime.toString("dddd dd/MM/yyyy"); | |
QString errorDateTimeString = dateTime.toString("dd/MM/yy hh:mm:ss"); | |
ui->showDateLabel->setText(dateTimeString); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@output['products'][0] | |
=> { | |
"url"=>"http://omgili.com/ri/.wHSUbtEfZTzBH6c9Z4cI15_sA3Hthoy48U8beRZ_m5lA7IjRC07KAl_t9PZZTUpVyIElYRPNwESkpgWrFuLtCsKQ1Apdjx_jld142pfHUAdippyPkgHob2bwpktxkzZqvVelr3L3OOq9qp5XCHXEYkx1GYb0O_awd5Z8FnemrBnhIJ4ZIOaKn7WinS9k36LajW78ScZZFngDQem4_p6BKrC02m1OhRc", | |
"uuid"=>"bc54af0e0b4da231cad1a1352544fd3e6c234c68", | |
"source"=>{ | |
"site_full"=>"www.walmart.com", | |
"site"=>"walmart.com", | |
"site_section"=>"https://www.walmart.com/", | |
"section_title"=>"Walmart.com: Free 2-Day Shipping on Millions of Items", | |
"country"=>"US"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a manifest file that'll be compiled into application.js, which will include all the files | |
// listed below. | |
// | |
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's | |
// vendor/assets/javascripts directory can be referenced here using a relative path. | |
// | |
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | |
// compiled file. JavaScript code in this file should be added after the last require_* statement. | |
// | |
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "bootstrap-sprockets"; | |
@import "bootstrap"; | |
@import "jquery-ui"; | |
.soci li{ | |
display:inline-block; | |
margin:0 0.2em; | |
} | |
i.f-1 { |