Skip to content

Commit

Permalink
Issue #104
Browse files Browse the repository at this point in the history
- Aggiunta "vista completa" evento per dettaglio gde;
- Allineamento issue #102 per "Modifica flussi rendicontazione"
  • Loading branch information
simo-git committed Sep 18, 2019
1 parent 39419aa commit d0d35bd
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@
<div class="d-block" *ngIf="informazioniPA.length != 0">
<link-key-value-view class="d-block link-key-value-fill-mat-card" *ngFor="let item of informazioniPA" [info]="item"></link-key-value-view>
</div>
<div class="row lh-130 regular-16 mb-2 break-all" *ngIf="infoPACompletaUrl">
<div class="col-4 color-gray lh-130 mb-2 mb-sm-0">{{_voce.VISTA_COMPLETA}}</div>
<div class="col-8">
<a [href]="infoPACompletaUrl" target="_blank">
<mat-icon>open_in_new</mat-icon>
</a>
</div>
</div>
</mat-card>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export class GiornaleEventiViewComponent implements IModalDialog, OnInit, IExpor

@Input() json: any;

protected _voce = Voce;
protected infoPACompletaUrl: string = '';

constructor(protected us: UtilService) { }

ngOnInit() {
Expand All @@ -30,6 +33,7 @@ export class GiornaleEventiViewComponent implements IModalDialog, OnInit, IExpor
protected dettaglioEvento() {
let _dettaglio = [];
let _dettaglioPA = [];
this.infoPACompletaUrl = '';
let _date = this.json.dataEvento?moment(this.json.dataEvento).format('DD/MM/YYYY [-] HH:mm:ss.SSS'):Voce.NON_PRESENTE;
_dettaglio.push(new Dato({ label: Voce.CATEGORIA_EVENTO, value: UtilService.TIPI_CATEGORIA_EVENTO[this.json.categoriaEvento] }));
_dettaglio.push(new Dato({ label: Voce.MODULO, value: this.json.componente }));
Expand All @@ -55,6 +59,7 @@ export class GiornaleEventiViewComponent implements IModalDialog, OnInit, IExpor
_dettaglioPA.push(new Dato({label: Voce.ID_INTERMEDIARIO, value: UtilService.defaultDisplay({ value: this.json.datiPagoPA.idIntermediario })}));
_dettaglioPA.push(new Dato({label: Voce.ID_STAZIONE, value: UtilService.defaultDisplay({ value: this.json.datiPagoPA.idStazione })}));
}
this.infoPACompletaUrl = UtilService.RootByTOA() + UtilService.URL_GIORNALE_EVENTI + '/' + this.json.id;
this.informazioni = _dettaglio.slice(0);
this.informazioniPA = _dettaglioPA.slice(0);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,15 @@ export class RendicontazioniViewComponent implements IModalDialog, OnInit {

protected mapJsonDetail() {
//Riepilogo
let _dvi = this.json.dataFlusso?moment(this.json.dataFlusso).format('DD/MM/YYYY [ore] HH:mm'):Voce.NON_PRESENTE;
let _dr = this.json.dataRegolamento?moment(this.json.dataRegolamento).format('DD/MM/YYYY [ore] HH:mm'):Voce.NON_PRESENTE;
let _dr = this.json.dataRegolamento?moment(this.json.dataRegolamento).format('DD/MM/YYYY'):Voce.NON_PRESENTE;
this.info = new Riepilogo({
titolo: new Dato({ label: Voce.DATA_VALUTA_INCASSO, value: _dvi }),
sottotitolo: new Dato({ label: Voce.TRN, value: this.json.trn }),
titolo: new Dato({ label: Voce.ISTITUTO, value: this.json.ragioneSocialePsp + ' (' + this.json.idPsp + ')' }),
sottotitolo: new Dato({ label: Voce.ENTE_CREDITORE, value: this.json.ragioneSocialeDominio?(this.json.ragioneSocialeDominio + ' (' + this.json.idDominio + ')'):this.json.idDominio }),
importo: this.us.currencyFormat(this.json.importoTotale),
extraInfo: [
{ label: Voce.ID_FLUSSO+': ', value: this.json.idFlusso },
{ label: Voce.BIC_RIVERSAMENTO+': ', value: UtilService.defaultDisplay({ value: this.json.bicRiversamento }) },
{ label: Voce.ID_PSP+': ', value: this.json.idPsp },
{ label: Voce.ID_DOMINIO+': ', value: this.json.idDominio },
{ label: Voce.NUMERO_PAY+': ', value: this.json.numeroPagamenti },
{ label: Voce.DATA_REGOLAMENTO+': ', value: _dr }
{ label: Voce.ID_CONTABILE+': ', value: this.json.trn },
{ label: Voce.DATA_REGOLAMENTO+': ', value: _dr },
{ label: Voce.NUMERO_PAY+': ', value: this.json.numeroPagamenti }
]
});
let _warn = [];
Expand Down Expand Up @@ -91,16 +87,15 @@ export class RendicontazioniViewComponent implements IModalDialog, OnInit {
let _std = new Standard();
switch(type) {
case UtilService.URL_RENDICONTAZIONI:
let _tmpData = item.data?moment(item.data).format('DD/MM/YYYY'):Voce.NON_PRESENTE;
let _st = Dato.arraysToDato(
[ Voce.DATA_ESITO, Voce.IUR ],
[ _tmpData, item.iur ],
[ Voce.IUR_SIGLA, Voce.INDICE ],
[ item.iur, item.indice ],
', '
);
_std.titolo = new Dato({ label: '', value: item.iuv });
_std.titolo = new Dato({ label: Voce.IUV, value: item.iuv });
_std.sottotitolo = _st;
_std.importo = this.us.currencyFormat(item.importo);
//_std.stato = UtilService.STATI_ESITO_RENDICONTAZIONI[item.esito];
_std.stato = UtilService.STATI_ESITO_RENDICONTAZIONI[item.esito];
break;
}
return _std;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ export class SideListComponent implements OnInit, OnDestroy, IExport {
tmpValue.push(item.ragioneSocialeDominio?item.ragioneSocialeDominio:item.idDominio);
tmpValue.push(item.ragioneSocialePsp?item.ragioneSocialePsp:item.idPsp);
_st = Dato.arraysToDato(
[ Voce.DATA, Voce.ENTE_CREDITORE, Voce.PSP ],
[ Voce.DATA, Voce.ENTE_CREDITORE_SIGLA, Voce.PSP ],
tmpValue,
', '
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class UtilService {
public static STATI_ESITO_RENDICONTAZIONI: any = {
0: 'Pagamento eseguito',
3: 'Pagamento revocato',
9: 'Pagamento eseguito in assenza di RPT'
9: 'Pagamento eseguito senza RPT'
};

//STATI TRACCIATO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class Voce {
public static ELABORAZIONE: string = 'Elaborazione';
public static EMAIL: string = 'Email';
public static ENTE_CREDITORE: string = 'Ente creditore';
public static ENTE_CREDITORE_SIGLA: string = 'EC';
public static ENTI_CREDITORI: string = 'Enti creditori';
public static EROGATORE: string = 'Erogatore';
public static ESITO: string = 'Esito';
Expand All @@ -77,6 +78,7 @@ export class Voce {
public static ID_A2A: string = 'Id A2A';
public static ID_BOLLO: string = 'Id bollo';
public static ID_CANALE: string = 'Id canale';
public static ID_CONTABILE: string = 'Identificativo contabile';
public static ID_DOMINIO: string = 'Id dominio';
public static ID_ENTRATA: string = 'Id entrata';
public static ID_FLUSSO: string = 'Id rendicontazione';
Expand All @@ -95,10 +97,12 @@ export class Voce {
public static IMPORTO: string = 'Importo';
public static INCASSO: string = 'Incasso';
public static INOLTRO: string = 'Inoltro';
public static INDICE: string = 'Indice';
public static INDICE_PENDENZA: string = 'Indice pendenza';
public static INDIRIZZO: string = 'Indirizzo';
public static ISTITUTO: string = 'Istituto';
public static IUR: string = 'Riscossione (IUR)';
public static IUR_SIGLA: string = 'IUR';
public static IUV: string = 'IUV';
public static IUV_CODEC: string = 'Codifica IUV';
public static IUV_GENERATION: string = 'Generazione IUV interna';
Expand Down
2 changes: 1 addition & 1 deletion wars/web-console/src/main/webapp/main.bundle.js

Large diffs are not rendered by default.

0 comments on commit d0d35bd

Please sign in to comment.