git-svn-id: svn://10.65.10.50/branches/R_10_00@22738 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3a98d37f2b
commit
22cbabbf36
@ -17,6 +17,5 @@ int main(int argc, char** argv)
|
||||
case 8: ca0900(argc,argv); break; // gestione archivi per utente avanzatissima!
|
||||
default: ca0100(argc,argv); break; // gestione tabelle
|
||||
}
|
||||
exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
@ -51,19 +51,19 @@ const TString& TConfig_anal::get(const char* varname, const char* section, int i
|
||||
|
||||
if (_has_cm)
|
||||
{
|
||||
TString& tmp = get_tmp_string();
|
||||
const TFixed_string var(varname);
|
||||
TString& tmp = get_tmp_string();
|
||||
//se il valore della variabile sul .ini e' vuoto controlla se e' possibile assegnarlo di default
|
||||
if (var == "AttFasi")
|
||||
tmp = "X"; else
|
||||
if (var == "Level" && index == 1)
|
||||
tmp = "CMS"; else
|
||||
if (var == "Cms" && index == 1)
|
||||
tmp = "LLLLLLLLLLLLLLLLLLLL"; else
|
||||
tmp = TConfig::get(var, section, 1, "LLLLLLLLLLLLLLLLLLLL"); else
|
||||
if (var == "CmsDes" && index == 1)
|
||||
tmp = TR("Commessa"); else
|
||||
if (var == "Fsc" && index == 1)
|
||||
tmp = "LLLLLLLLLL"; else
|
||||
tmp = TConfig::get(var, section, 1, "LLLLLLLLLL"); else
|
||||
if (var == "FscDes" && index == 1)
|
||||
tmp = TR("Fase"); else
|
||||
if (var == "EdMask")
|
||||
@ -106,21 +106,20 @@ const TString& TMultilevel_code_info::picture(int level) const
|
||||
}
|
||||
|
||||
bool TMultilevel_code_info::is_required(int level) const
|
||||
{
|
||||
bool yes = level <= 0;
|
||||
return yes;
|
||||
}
|
||||
{ return level <= 0; }
|
||||
|
||||
bool TMultilevel_code_info::is_numeric_picture(int level) const
|
||||
{
|
||||
const TString& pic = picture(level);
|
||||
if (pic.blank())
|
||||
return false;
|
||||
|
||||
for (int i = 0; pic[i]; i++)
|
||||
if (pic[i] != '0' && pic[i] != '9')
|
||||
return false;
|
||||
return true;
|
||||
if (pic.full())
|
||||
{
|
||||
int i;
|
||||
// Tutti 0 e 9
|
||||
for (i = 0; pic[i] == '0' || pic[i] == '9'; i++);
|
||||
if (pic[i] == '\0')
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
int TMultilevel_code_info::len(int level) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user