// Copyright (c) 2003,2004,2005 Juraj Kolesár /* __PARAMS shortcuts from __LT_C_COMPANY {{{ */ #define __PK __LT_C_COMPANY_PK #define __NAME __LT_C_COMPANY_NAME #define __IDN __LT_C_COMPANY_IDN #define __TXN __LT_C_COMPANY_TXN #define __EMPLOYEES __LT_C_COMPANY_EMPLOYEES #define __PHONE __LT_C_COMPANY_PHONE #define __EMAIL __LT_C_COMPANY_EMAIL /* }}} */ /* qs (*WINDOW, *T_DB, *T_QS, *T_COMPANY) {{{ */ int t_c_company_qs(WINDOW *win, T_DB *tdb, T_QS *qs, T_COMPANY *company); /* list companies filtered and ordered by qs values on confirm fills T_COMPANY with data and call form with more info about it. When selected to use values are stored and RETURN(true) /* }}} */ /* form (*WINDOW, *T_DB, *T_COMPANY) {{{ */ int t_c_company_form(WINDOW *win, T_DB *tdb, T_COMPANY * company); /* 1. inits positions of objects in POS array 2. calls form_draw to show objets 3. initialize MENU where user chooses next action }}} */ /* form draw (*T_COMPANY, *POS[]) {{{ */ int t_c_company_form_draw(T_COMPANY *company, POS *pos); /* -draws T_COMPANY data on positions from POS array }}} */ /* form edit (*T_COMPANY, *POS[]) {{{ */ int t_c_company_form_edit(T_COMPANY *company, POS *pos); /* start "editing and showing" cycle RETURN true - when T_COMPANY data was selected to "USE" false - any other escape from form /* }}} */ /* employees (*WINDOW, *T_COMPANY, *POS[]) {{{ */ int t_c_company_employ(WINDOW *win, T_DB *tdb, T_COMPANY * company); /* function that can create new person in database with employ relation to company temporary functionality specialy for testing- should be replaced in future /* }}} */