Patch level :2.0 454
Files correlati :ce0.exe Ricompilazione Demo : [ ] Commento : IMPL104 Nell'anagrafica la selezione per impianto non da' la colonna della descrizione impianto e la consultazione e' difficile. git-svn-id: svn://10.65.10.50/trunk@11011 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
055a9fff33
commit
ab3ecdd04d
@ -46,6 +46,7 @@ void TQuery_mask::on_search_event(TOperable_field& o)
|
||||
if (o.dlg() >= F_SEARCH2)
|
||||
{
|
||||
order.add(CESPI_CODIMP); header.add("Impianto@10");
|
||||
order.add("CIM->S0"); header.add("Descrizione impianto@40");
|
||||
}
|
||||
if (o.dlg() >= F_SEARCH1)
|
||||
{
|
||||
@ -56,13 +57,14 @@ void TQuery_mask::on_search_event(TOperable_field& o)
|
||||
order.add(CESPI_IDCESPITE); header.add("Codice@10");
|
||||
|
||||
fields = order;
|
||||
fields.add(CESPI_DESC); header.add("Descrizione@50");
|
||||
fields.add(CESPI_DESC); header.add("Descrizione cespite@50");
|
||||
|
||||
TRelation rel(LF_CESPI);
|
||||
|
||||
TString filter;
|
||||
if (get(F_SELECT)[0] == 'I') // Filtro per impianto
|
||||
{
|
||||
rel.add("CIM","CODTAB==CODIMP");
|
||||
const TString& imp = get(F_IMPIANTO);
|
||||
if (!imp.empty())
|
||||
filter << CESPI_CODIMP << "=\"" << imp << '"';
|
||||
|
Loading…
x
Reference in New Issue
Block a user