// Copyright (c) 2003,2004,2005 Juraj Kolesár /* lt_s_input_data_init (*T_INPUT) {{{ ****************************************/ int lt_s_input_data_init(T_INPUT *input); /* Initializes values in T_INPUT RETURN (__LT_OK) }}} */ /* lt_s_input_new (*T_DB, *T_INPUT) {{{ ***************************************/ int lt_s_input_new(T_DB *tdb, T_INPUT *input); /* Inserts new row into "s_inputs" and gets its new pk when not saved in the end with new "code" should be removed as blind row }}} */ /* lt_s_input_qs_init(*T_INPUT, **T_COLS, *T_QS) {{{ **************************/ int lt_s_input_qs_init(T_INPUT *input, T_COLS **cols, T_QS *qs); /* Not used yet but should init T_COLS and T_QS variables so they are prepared for tt_table_qs that shows inputs In T_COLS are inserted values from T_INPUT so by viewing list of inputs cursor should (pre)select this item }}} */ /* lt_s_input_item_add(*T_INPUT, *T_ITEM, int count) {{{ **********************/ int lt_s_input_item_add(T_INPUT *input, T_ITEM *item, int count); /* Adds T_ITEM data as new row into T_INPUT->items }}} */ /* lt_s_input_items_set(*T_DB, *T_INPUT) {{{ !!! NOT WORKING YET***************/ int lt_s_input_items_set(T_DB *tdb, T_INPUT *input); /* Should go through all T_INPUT->items rows and use each row as new INSERT into "s_add" with "fk_s_inputs" value set as pk of T_INPUT }}} */ /* lt_s_input_items_get(*T_DB, *T_INPUT) {{{ **********************************/ int lt_s_input_items_get(T_DB *tdb, T_INPUT *input); /* Fills T_INPUT->items table with referencing values from "s_add" }}} */