1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
| var general = [{
bodyStyle: 'padding-right:5px;',
items: {
xtype: 'fieldset',
title: '',
width: 350,
height:126,
border:false,
defaultType: 'textfield', // each item will be a checkbox
items: [{
xtype: 'tbbutton',
fieldLabel: 'Soci\351t\351 Investisseur',
id: 'SoInvest',
labelStyle: ' width: 170px; color:#0A3E83; font-size: 14px; font-weight: bold',
text: 'Fiche Soci\351t\351',
handler: function(){
var Societe__ID = document.getElementById("Societe__ID").value;
window.location = "http://localhost/InnovalisAquitaine_RelationManager/public/societe/edit/Societe__ID/"+Societe__ID;
}
},
{
fieldLabel: '',
name: 'Societe__DenominationSociale',
allowBlank:false,
labelStyle: ' width: 0px;',
clearCls: 'padding-left : 80px; text-align:right;',
readOnly : true,
width: 200,
},
{
fieldLabel: 'Type St\351 Invest',
name: 'Societe__has__investisseur__Type',
allowBlank:false,
labelStyle: 'width: 100px; text-align:right;',
disabled : true,
width: 200,
},
{
fieldLabel: '',
name: 'Societe__ID',
id: 'Societe__ID',
allowBlank:false,
labelStyle: 'width: 100px; text-align:right;',
hidden: true,
width: 200,
}]
}
}, {
bodyStyle: 'padding-left:5px;',
items: {
xtype: 'fieldset',
title: '',
border:false,
width: 350,
defaultType: 'textfield', // each item will be a radio button
items: [{
fieldLabel: 'Cat\351gorie',
name: 'Societe__Categorie__Description',
allowBlank:false,
labelStyle: 'width: 100px; text-align:right; ',
disabled : true,
width: 200,
}, {
fieldLabel: 'Tel soci\351t\351',
name: 'Societe__Telephone',
labelStyle: 'width: 100px; text-align:right;',
allowBlank:false,
disabled : true,
width: 200,
}, {
fieldLabel: 'Site Web',
name: 'Societe__SiteWeb',
labelStyle: 'width: 100px; text-align:right;',
allowBlank:false,
disabled : true,
width: 200,
}, {
fieldLabel: 'Adh\351re',
name: 'Investisseur__So__Adherent__Libele',
labelStyle: 'width: 100px; text-align:right;',
allowBlank:false,
disabled : true,
width: 200,
}] }
}, {
bodyStyle: 'padding-left:5px;',
items: {
xtype: 'fieldset',
title: '',
border:false,
width: 350,
border:false,
defaultType: 'textfield', // each item will be a radio button
items: [{
xtype: 'textarea',
fieldLabel: 'Adresse Si\350ge soc',
name: 'Societe__AdresseSiegeSociale',
labelStyle: 'width: 100px; text-align:right;',
allowBlank:false,
style : {
width: '136',
height:'48'
},
disabled : true,
width: 200,
}, {
fieldLabel: 'Code Postal',
name: 'Societe__CodePostalSiegeSociale',
labelStyle: 'width: 100px; text-align:right;',
allowBlank:false,
disabled : true,
width: 200,
}, {
fieldLabel: 'Ville',
name: 'Societe__VilleSiegeSociale',
labelStyle: 'width: 100px; text-align:right;',
allowBlank:false,
disabled : true,
width: 200,
}] }
}, {
bodyStyle: 'padding-left:5px;',
items: {
xtype: 'fieldset',
title: '',
border:false,
width: 350,
border:false,
defaultType: 'textarea', // each item will be a radio button
items: [{
xtype: 'textarea',
fieldLabel: 'Notes',
name: 'Societe__Commentaire',
labelStyle: 'width: 100px; text-align:right;',
allowBlank:false,
style : {
width: '160',
height:'80'
},
disabled : true,
width: 200,
}]
}
}];
var generalpanel1 = new Ext.FormPanel({
bodyStyle: 'padding:0 10px 0; text-align:right;',
id:'generalpanel1',
labelWidth: 110,
items: [
{
layout: 'column',
border: true,
// defaults are applied to all child items unless otherwise specified by child item
defaults: {
columnWidth: '.22',
border: true
},
items: [general]
},
],listeners: {
'render': function(){
//alert('Les données ne sont chargées que sur le render du form');
this.getForm().load({
url: 'http://localhost/InnovalisAquitaine_RelationManager/public/societeinvestiseur/generalsocieteinvest/Investisseur__Societe__ID/'+idinvestso
});
}
}
});
var generalpanel = new Ext.Panel({
title: 'G\351n\351ral',
frame: true,
cls:'empty',
items: [generalpanel1],
});
var accordion = new Ext.Panel({
title: 'G\351n\351ral',
margins:'5 0 5 5',
split:true,
layoutConfig : {
titleCollapse : true,
animate : true
},
layout:'accordion',
items: [ generalpanel, Contactsrattache, Ciblage]
}); |
Partager