Patch level :10.0
Files correlati :ce0.exe ce3.exe Ricompilazione Demo : [ ] Commento :riportate modifiche 3.2 patch 1160 (ammmv in registro acrilico) git-svn-id: svn://10.65.10.50/trunk@16687 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0f8a6909f1
commit
0c16dfbcb3
@ -136,8 +136,8 @@ void TQuery_mask::on_user_search(TOperable_field& o)
|
||||
TString prompt = o.prompt();
|
||||
prompt << "@" << o.size(); //lunghezza del prompt del campo
|
||||
header.add(prompt);
|
||||
order.add(CESPI_IDCESPITE); header.add(HR("Cespite@10"));
|
||||
order.add(CESPI_DESC); header.add(HR("Descrizione cespite@50"));
|
||||
order.add(CESPI_IDCESPITE); header.add(TR("Cespite@10"));
|
||||
order.add(CESPI_DESC); header.add(FR("Descrizione cespite@50"));
|
||||
|
||||
TRelation rel(LF_CESPI);
|
||||
|
||||
@ -177,6 +177,7 @@ void TQuery_mask::on_search_event(TOperable_field& o)
|
||||
fields.add(CESPI_DESC); header.add(HR("Descrizione cespite@50"));
|
||||
|
||||
TRelation rel(LF_CESPI);
|
||||
|
||||
rel.add("CIM","CODTAB==CODIMP");
|
||||
|
||||
TString filter;
|
||||
@ -439,8 +440,8 @@ bool TEdit_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
|
||||
if (stato_attivita() == 2)
|
||||
{
|
||||
if (dtcomp < iniz)
|
||||
return error_box(TR("La data appartiene ad un esercizio già stampato su bollato"));
|
||||
// if (m.dtcomp < iniz) // Errore 0000820: test inutile
|
||||
// return error_box(TR("La data appartiene ad un esercizio già stampato su bollato"));
|
||||
const TRectype& cac = dc.categoria(0, NULL, get_int(F_CATEGORIA));
|
||||
iniz = cac.get("D0");
|
||||
if (iniz.ok() && dtcomp < iniz)
|
||||
@ -600,7 +601,7 @@ bool TEdit_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||||
return error_box(msg);
|
||||
}
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case F_VEIDIP:
|
||||
case F_VEICOLO:
|
||||
//testa se e' un veicolo promiscuo in uso a dipendente
|
||||
@ -656,9 +657,9 @@ void TEdit_mask::protect_page(int page, TToken_string& enabling)
|
||||
short cid = 0;
|
||||
switch (page)
|
||||
{
|
||||
case 2: cid = F_ELEMENTI; break;
|
||||
case 3: cid = F_NORMALE; break;
|
||||
default: cid = F_IDCESPITE; break;
|
||||
case 2: cid = F_ELEMENTI; break; // Pagina 2 (Saldi)
|
||||
case 3: cid = F_NORMALE; break; // Pagina 3 (Fondi)
|
||||
default: cid = F_IDCESPITE; break; // Pagina 0 (Cespite)
|
||||
}
|
||||
// Determina l'handle della pagina selezionata
|
||||
WINDOW parent = field(cid).parent();
|
||||
@ -841,7 +842,7 @@ class TAnacespi : public TRelation_application
|
||||
TRelation* _cespiti;
|
||||
int _rel_year;
|
||||
TAssoc_array _matricole_iniziali;
|
||||
|
||||
|
||||
TQuery_mask* _qmask;
|
||||
TEdit_mask* _emask;
|
||||
|
||||
@ -972,12 +973,12 @@ void TAnacespi::init_insert_mode(TMask& m)
|
||||
m.set(F_ANNIRIC, cac.get("I3"));
|
||||
}
|
||||
m.set(F_ESCLPR, _emask->tipo_cespite() != tc_pluriennale ? "X" : "");
|
||||
|
||||
|
||||
// Extra: non richiesti da analisi, ma obbligatori
|
||||
m.set(F_VEICOLO, 1);
|
||||
m.set(F_USOPROM, 1);
|
||||
|
||||
//svuota l'assoc_array delle matricole antiche
|
||||
//svuota l'assoc_array delle matricole antiche
|
||||
_matricole_iniziali.destroy();
|
||||
}
|
||||
|
||||
@ -1020,6 +1021,7 @@ void TAnacespi::init_modify_mode(TMask& m)
|
||||
}
|
||||
|
||||
_emask->protect_page(1, enabling);
|
||||
|
||||
if (staat == 2 || staat == 3)
|
||||
{
|
||||
enabling.cut(0);
|
||||
@ -1181,7 +1183,7 @@ int TAnacespi::write(const TMask& m)
|
||||
|
||||
int err = TRelation_application::write(m);
|
||||
|
||||
//gestione matricole
|
||||
//gestione matricole
|
||||
if (err == NOERR)
|
||||
aggiorna_matricole(m);
|
||||
|
||||
@ -1191,16 +1193,16 @@ int TAnacespi::write(const TMask& m)
|
||||
bool TAnacespi::kill_cespite(const TString& idcespite, int lfile, int key)
|
||||
{
|
||||
TRelation rel(lfile);
|
||||
TRectype& filter = rel.curr();
|
||||
if (lfile == LF_MULTIREL)
|
||||
TRectype& filter = rel.curr();
|
||||
if (lfile == LF_MULTIREL)
|
||||
{
|
||||
filter.put(MULTI_COD, "CEMAT");
|
||||
filter.put(MULTI_FIRST, idcespite);
|
||||
}
|
||||
else
|
||||
filter.put("IDCESPITE", idcespite);
|
||||
|
||||
TCursor cur(&rel, "", key, &filter, &filter);
|
||||
|
||||
TCursor cur(&rel, "", key, &filter, &filter);
|
||||
const TRecnotype items = cur.items();
|
||||
if (items > 0)
|
||||
{
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "../cg/cglib01.h"
|
||||
|
||||
#include "ammce.h"
|
||||
#include "ammmv.h"
|
||||
#include "cespi.h"
|
||||
#include "movce.h"
|
||||
#include "salce.h"
|
||||
@ -238,6 +239,16 @@ bool TStampa_sintetica_rep::get_usr_val(const TString& name, TVariant& var) cons
|
||||
const TRectype& rec_ammce = _cespite.amm_pro();
|
||||
var = real(rec_ammce.get_real(AMMCE_QNOR) + rec_ammce.get_real(AMMCE_QACC) + rec_ammce.get_real(AMMCE_QANT) +
|
||||
rec_ammce.get_real(AMMCE_QPERSE) + rec_ammce.get_real(AMMCE_QPPRIVATE) + rec_ammce.get_real(AMMCE_FPRIVATO));
|
||||
//ci sono pure degli ammmv? (1 volta su 1 miliardo)
|
||||
real quote_ammmv;
|
||||
const TArray& array_ammmv = _cespite.ammmv();
|
||||
for (int i = 0; i < array_ammmv.items(); i++)
|
||||
{
|
||||
const TRectype& rec_ammmv = (const TRectype&)array_ammmv[i];
|
||||
quote_ammmv = rec_ammmv.get_real(AMMMV_QNOR) + rec_ammmv.get_real(AMMMV_QACC) +
|
||||
rec_ammmv.get_real(AMMMV_QANT) + rec_ammmv.get_real(AMMMV_QPERSE) + rec_ammmv.get_real(AMMMV_QPPRIVATE) + rec_ammmv.get_real(AMMMV_FPRIVATO);
|
||||
}
|
||||
var += quote_ammmv;
|
||||
return true;
|
||||
}
|
||||
if (name == "#FAMM") //fondo ammortamento alla fine dell'esercizio precedente
|
||||
|
Loading…
x
Reference in New Issue
Block a user