2011-03-21 14:23:00 +00:00
|
|
|
#include <xvt.h>
|
|
|
|
#include <checks.h>
|
|
|
|
|
|
|
|
#include "ha3.h"
|
|
|
|
|
2011-04-20 13:59:52 +00:00
|
|
|
#define usage "Error - usage : %s -{0|6|7|8}"
|
2011-03-21 14:23:00 +00:00
|
|
|
|
|
|
|
int main(int argc,char** argv)
|
|
|
|
{
|
|
|
|
int rt = -1 ;
|
|
|
|
const int r = (argc > 1) ? atoi(&argv[1][1]) : -1;
|
|
|
|
|
|
|
|
switch (r)
|
|
|
|
{
|
|
|
|
case 0: rt = ha3100(argc, argv); break; //Gestione giri
|
2011-04-20 13:59:52 +00:00
|
|
|
case 6: rt = ha3700(argc, argv); break; //Stampa storico
|
2011-04-11 15:33:07 +00:00
|
|
|
case 7: rt = ha3800(argc, argv); break; //Inserimento righe storico da documenti
|
|
|
|
case 8: rt = ha3900(argc, argv); break; //Gestione storico attrezzature
|
2011-03-21 14:23:00 +00:00
|
|
|
default: error_box(usage, argv[0]); break;
|
|
|
|
}
|
|
|
|
return rt;
|
|
|
|
}
|