void watch_orders::on_showOrders_clicked()
{
    if(ui->checkBox->isChecked())
            refresh_table_with_date();
    else
        refresh_table();
}
Ejemplo n.º 2
0
int table::add_row()
{
    int x0 = 0;
    int y0 = 0;

    if(m_table.size()) {

        x0 = m_W0 - m_CW * m_colomn/2;
        y0 = m_H0 - m_H0/2 + m_CH * m_table.size();

    } else {

        x0 = m_W0 - m_CW * m_colomn/2;
        y0 = m_H0 - m_H0/2;
    }

    row_t new_row;

    new_row.X0 = x0;
    new_row.Y0 = y0;

    for(int col = 0; col < m_colomn; col++) {

        int xn = x0 + m_CW * col;
        int yn = y0;

        WINDOW *w = newwin(m_CH, m_CW, yn, xn);
        if(!w)
            break;
            box(w, 0 , 0);
            wrefresh(w);
            new_row.w.push_back(w);
    }

    m_table.push_back(new_row);

    refresh_table();

    return m_table.size() - 1;
}
Ejemplo n.º 3
0
void customer::insert_debit_type()
{
    debit_types *w=new debit_types(this,db1,0,cusid);
    w->show();
    connect(w,SIGNAL(refresh_table()),this,SLOT(refresh_sql()));
}