Skip to content

Commit

Permalink
Corrections des anomalies trouvées par @Jusbatier
Browse files Browse the repository at this point in the history
Link to #436
  • Loading branch information
pierre committed Dec 11, 2018
1 parent 6c24a23 commit 1341439
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
21 changes: 8 additions & 13 deletions addons/cadastrapp/js/printBordereauParcellaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ GEOR.Addons.Cadastre.onClickPrintBordereauParcellaireWindow = function(parcelleI
*/
GEOR.Addons.Cadastre.initPrintBordereauParcellaireWindow = function(parcelleId) {

var itemsInPanel = [];
var itemsInPanel = [{
xtype: 'hidden',
name: 'parcelle',
value: parcelleId
}];

// Show only personaldata information if user have the goog Cnil level
if (GEOR.Addons.Cadastre.isCNIL1() || GEOR.Addons.Cadastre.isCNIL2()){
var fiedSetPersonnalData = new Ext.form.FieldSet({
title: OpenLayers.i18n('cadastrapp.bordereauparcellaire.data'),
autoHeight: true,
hide: true,
items: [ {
xtype: 'hidden',
name: 'parcelle',
value: parcelleId
}, {
items: [{
xtype: 'radio',
boxLabel: OpenLayers.i18n('cadastrapp.bordereauparcellaire.data.without'),
checked: true,
Expand Down Expand Up @@ -125,12 +125,7 @@ GEOR.Addons.Cadastre.initPrintBordereauParcellaireWindow = function(parcelleId)
typeAhead: true,
forceSelection: true,
triggerAction: 'all',
editable: false,
});

// Load first value
comboBaseMap.store.on('load', function(ds,records,o){
comboBaseMap.setValue(records[0].data.value);
editable: false
});

storeBaseMap.loadData(GEOR.Addons.Cadastre.pdfbasemaptitles);
Expand Down Expand Up @@ -185,7 +180,7 @@ GEOR.Addons.Cadastre.initPrintBordereauParcellaireWindow = function(parcelleId)
// PARAMS
var params = GEOR.Addons.Cadastre.printBordereauParcellaireWindow.items.items[0].getForm().getValues();
if(Ext.getCmp("cadbasemapindex")){
params.basemapindex = Ext.getCmp("cadbasemapindex").getValue();
params.basemapindex = Ext.getCmp("cadbasemapindex").getValue() == '' ? "0" : Ext.getCmp("cadbasemapindex").getValue();
}
// Add style information
// remove # to avoid URL problems on server side (XSL template doesnot manage url-encode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static String getProperty(String name) {
/**
* Get Map of values where key like given regex
*
* @param regexkey
* @param regexKey regex use to get all keys
* @return all value where key like regexKey, null if no key matches
*/
public static List<Object> getPropertiesLike(String regexKey){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public class ImageParcelleController extends CadController {
* @param styleFillOpacity From 0 to 1
* @param styleStrokeColor hexacode without #
* @param styleStrokeWidth stroke width
* @param baseMapIndex corresponding of the wanted index in cadastrapp.properties
* @return Response with noContent in case of error, png otherwise
*/
@GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public class BordereauParcellaireController extends CadController {
* @param styleFillOpacity style plot opacity
* @param styleStrokeColor style stroke color
* @param styleStrokeWidth style stroke width
* @return
* @param baseMapIndex corresponding of the wanted index in cadastrapp.properties
* @return BP pdf
*/
@GET
@Path("/createBordereauParcellaire")
Expand Down

0 comments on commit 1341439

Please sign in to comment.