|
| 1 | +<Panel |
| 2 | + bsStyle="primary" |
| 3 | + header={( |
| 4 | + <DetailTitle title='ADEMPIMENTI AMBIENTALI SCRIVA' subtitle={[ |
| 5 | + 'Codice Istanza: ', |
| 6 | + model.getValue("/wfs:FeatureCollection/wfs:member/decsiraogc_scriva:ScrivaIstanza/decsiraogc_scriva:codIstanza/text()") |
| 7 | + ]} id={model.id}/> |
| 8 | + )}> |
| 9 | + <Panel className="template"> |
| 10 | + <Section header='DATI GENERALI - Scriva Istanza' eventKey='1' expanded={true}> |
| 11 | + <LabeledField label='Codice istanza' value={ |
| 12 | + model.getValue("/wfs:FeatureCollection/wfs:member/decsiraogc_scriva:ScrivaIstanza/decsiraogc_scriva:codIstanza/text()") |
| 13 | + }/> |
| 14 | + <LabeledField label='Tipo adempimento' value={ |
| 15 | + model.getValue("/wfs:FeatureCollection/wfs:member/decsiraogc_scriva:ScrivaIstanza/decsiraogc_scriva:destipoAdempimento/text()") |
| 16 | + }/> |
| 17 | + <LabeledField label='Adempimento' value={ |
| 18 | + model.getValue("/wfs:FeatureCollection/wfs:member/decsiraogc_scriva:ScrivaIstanza/decsiraogc_scriva:desAdempimento/text()") |
| 19 | + }/> |
| 20 | + <ProfileWrapper condition={() => (model && model.profile) && ( (model.profile.indexOf('PA_GEN_DECSIRA@REG_PMN')) > -1 )}> |
| 21 | + <LabeledField label='Stato Istanza' value={ |
| 22 | + model.getValue("/wfs:FeatureCollection/wfs:member/decsiraogc_scriva:ScrivaIstanza/decsiraogc_scriva:desStatoIstanza/text()") |
| 23 | + }/> |
| 24 | + </ProfileWrapper> |
| 25 | + </Section> |
| 26 | + |
| 27 | + <Section header="Documentazione allegata Sintesi" eventKey='2' expanded={true}> |
| 28 | + <SiraTable |
| 29 | + id="ScrivaAllegatoIstanza" |
| 30 | + selectedRow={model.ScrivaAllegatoIstanza} |
| 31 | + wfsVersion="2.0" |
| 32 | + rowSelection={false} |
| 33 | + columns={ |
| 34 | + [ |
| 35 | + { |
| 36 | + headerName: ' Codice Allegato', |
| 37 | + width: 120, |
| 38 | + xpath:"decsiraogc_scriva:ScrivaAllegatoIstanza/decsiraogc_scriva:codAllegato/text()" |
| 39 | + }, |
| 40 | + { |
| 41 | + headerName: 'Nome Allegato', |
| 42 | + width: 200, |
| 43 | + xpath:"decsiraogc_scriva:ScrivaAllegatoIstanza/decsiraogc_scriva:nomeAllegato/text()" |
| 44 | + }, |
| 45 | + { |
| 46 | + headerName: 'Classe Allegato', |
| 47 | + width: 120, |
| 48 | + xpath:"decsiraogc_scriva:ScrivaAllegatoIstanza/decsiraogc_scriva:desClasseAllegato/text()" |
| 49 | + }, |
| 50 | + { |
| 51 | + headerName: 'Dimensione file', |
| 52 | + width: 120, |
| 53 | + xpath:"decsiraogc_scriva:ScrivaAllegatoIstanza/decsiraogc_scriva:dimensioneUpload/text()" |
| 54 | + }, |
| 55 | + { |
| 56 | + headerName: 'Data Pubblicazione', |
| 57 | + width: 120, |
| 58 | + xpath:"decsiraogc_scriva:ScrivaAllegatoIstanza/decsiraogc_scriva:dataPubblicazione/text()", |
| 59 | + dateFormat: {day:"2-digit",month:"2-digit",year:"numeric"}, |
| 60 | + }, |
| 61 | + { |
| 62 | + headerName: 'Tipo pubblicazione', |
| 63 | + width: 150, |
| 64 | + xpath:"decsiraogc_scriva:ScrivaAllegatoIstanza/decsiraogc_scriva:flgPubblicazione/text()" |
| 65 | + } |
| 66 | + ] |
| 67 | + } |
| 68 | + features={model.getValue("/wfs:FeatureCollection/wfs:member/decsiraogc_scriva:ScrivaIstanza/decsiraogc_scriva:scrivaAllegatoIstanza")}/> |
| 69 | + </Section> |
| 70 | + |
| 71 | + <Section header='Documentazione Elaborati progettuali (API SCRIVA)' eventKey='3' expanded={true}> |
| 72 | + <AttachmentTableApi |
| 73 | + id="ScrivaAllegatoIstanzaApi" |
| 74 | + selectedRow={model.BdnAllegatoPiani} |
| 75 | + wfsVersion="2.0" |
| 76 | + rowSelection={false} |
| 77 | + idIstanza={model.getValue("/wfs:FeatureCollection/wfs:member/decsiraogc_scriva:ScrivaIstanza/decsiraogc_scriva:idIstanza/text()")} |
| 78 | + columns={ |
| 79 | + [ |
| 80 | + { |
| 81 | + headerName: '', |
| 82 | + width: 50, |
| 83 | + download: true, |
| 84 | + confirm: true, |
| 85 | + field: "link" |
| 86 | + }, |
| 87 | + { |
| 88 | + headerName: 'Codice Allegato', |
| 89 | + width: 120, |
| 90 | + field: "cod_allegato", |
| 91 | + jsonField:"cod_allegato" |
| 92 | + }, |
| 93 | + { |
| 94 | + headerName: 'Nome Allegato', |
| 95 | + width: 120, |
| 96 | + field: "nome_allegato", |
| 97 | + jsonField: "nome_allegato" |
| 98 | + }, |
| 99 | + { |
| 100 | + headerName: 'Titolo Allegato', |
| 101 | + width: 120, |
| 102 | + field: "titolo_allegato", |
| 103 | + jsonField: "titolo_allegato" |
| 104 | + }, |
| 105 | + { |
| 106 | + headerName: 'Tipologia Allegato', |
| 107 | + width: 120, |
| 108 | + field: "des_tipologia_allegato", |
| 109 | + jsonField: "tipologia_allegato.des_tipologia_allegato" |
| 110 | + }, |
| 111 | + { |
| 112 | + headerName: 'Categoria Allegato', |
| 113 | + width: 120, |
| 114 | + field: "des_categoria_allegato", |
| 115 | + jsonField: "tipologia_allegato.categoria_allegato.des_categoria_allegato" |
| 116 | + }, |
| 117 | + { |
| 118 | + headerName: 'Classe Allegato', |
| 119 | + width: 120, |
| 120 | + field: "des_classe_allegato", |
| 121 | + jsonField: "classe_allegato.des_classe_allegato" |
| 122 | + }, |
| 123 | + { |
| 124 | + headerName: 'Flag cancellazione', |
| 125 | + width: 120, |
| 126 | + field: "flg_cancellato", |
| 127 | + jsonField: "flg_cancellato" |
| 128 | + }, |
| 129 | + { |
| 130 | + headerName: 'Tipo pubblicazione', |
| 131 | + width: 120, |
| 132 | + field: "flg_da_pubblicare", |
| 133 | + jsonField: "flg_da_pubblicare" |
| 134 | + }, |
| 135 | + { |
| 136 | + headerName: 'Dimensione file', |
| 137 | + width: 120, |
| 138 | + field: "dimensione_upload", |
| 139 | + jsonField: "dimensione_upload" |
| 140 | + }, |
| 141 | + { |
| 142 | + headerName: 'Data Pubblicazione', |
| 143 | + width: 120, |
| 144 | + field: "data_pubblicazione", |
| 145 | + jsonField: "data_pubblicazione", |
| 146 | + dateFormat: {day:"2-digit",month:"2-digit",year:"numeric"} |
| 147 | + }, |
| 148 | + { |
| 149 | + headerName: 'Numero protocollo', |
| 150 | + width: 120, |
| 151 | + field: "num_protocollo_allegato", |
| 152 | + jsonField: "num_protocollo_allegato" |
| 153 | + }, |
| 154 | + { |
| 155 | + headerName: 'Link Allegato', |
| 156 | + width: 120, |
| 157 | + field: "url_doc", |
| 158 | + jsonField: "url_doc", |
| 159 | + showUrlField: "flg_da_pubblicare", |
| 160 | + url: true |
| 161 | + } |
| 162 | + ] |
| 163 | + } |
| 164 | + /> |
| 165 | + </Section> |
| 166 | + |
| 167 | + <Section header='MAPPA SINTESI' eventKey='3' expanded={false}> |
| 168 | + <MappaScheda |
| 169 | + center={ |
| 170 | + model.getValue({ |
| 171 | + type: TemplateUtils.GEOMETRY_TYPE, |
| 172 | + xpath: "/wfs:FeatureCollection/wfs:member/decsiraogc_scriva:ScrivaIstanza/decsiraogc_scriva:geometria/text()" |
| 173 | + }) |
| 174 | + } |
| 175 | + layers={[ |
| 176 | + { |
| 177 | + "type": "wms", |
| 178 | + "url": "http://geomap.reteunitaria.piemonte.it/ws/taims/rp-01/taimsbasewms/wms_sfondo_cart_rif", |
| 179 | + "name": "SfondoCartRif", |
| 180 | + "title": "Sfondo Cartografico", |
| 181 | + "group": "background", |
| 182 | + "visibility": true, |
| 183 | + "format": "image/png", |
| 184 | + "tiled": true, |
| 185 | + "tileSize": 512 |
| 186 | + } |
| 187 | + ]} |
| 188 | + authParam={model.authParam} |
| 189 | + withMap={model.withMap}/> |
| 190 | + |
| 191 | + </Section> |
| 192 | + |
| 193 | + </Panel> |
| 194 | +</Panel> |
0 commit comments