1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.BuilderProp = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
37 title : "Add Property",
46 tableName : 'AutoAuth',
50 activate : function() {
53 _this.grid.footer.onClick('first');
60 autoExpandColumn : 'url',
66 //_this.dialog = Pman.Dialog.FILL_IN
67 if (_this.panel.active) {
68 this.footer.onClick('first');
71 rowdblclick : function (_self, rowIndex, e)
73 if (!_this.dialog) return;
74 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
75 _this.grid.footer.onClick('first');
83 sortInfo : { field : 'url', direction: 'ASC' },
88 url : baseURL + '/Builder/Prop.php'
93 totalProperty : 'total',
112 'dateFormat': 'Y-m-d'
119 'name': 'user_id_id',
123 'name': 'user_id_name',
127 'name': 'user_id_title',
131 'name': 'user_id_company',
135 'name': 'user_id_address',
139 'name': 'user_id_email',
143 'name': 'user_id_telephone',
147 'name': 'user_id_fax',
151 'name': 'user_id_mobile',
155 'name': 'user_id_country',
159 'name': 'user_id_currency',
163 'name': 'user_id_shipping_method',
167 'name': 'user_id_shipping_acc',
171 'name': 'user_id_terms_agreed',
175 'name': 'user_id_passwd',
179 'name': 'user_id_is_buyer',
183 'name': 'user_id_is_seller',
187 'name': 'user_id_is_want_blind_rfq',
191 'name': 'user_id_buyer_type',
195 'name': 'user_id_is_verified',
199 'name': 'user_id_is_disabled',
203 'name': 'user_id_is_want_email',
207 'name': 'user_id_mail_newprod_freq',
211 'name': 'user_id_quotation_by',
215 'name': 'user_id_is_want_make_offer',
219 'name': 'user_id_mail_inventry_freq',
223 'name': 'user_id_max_rfq_per_day',
227 'name': 'user_id_is_approved',
231 'name': 'user_id_created',
235 'name': 'user_id_modified',
239 'name': 'user_id_modified_by',
243 'name': 'user_id_is_administrator',
247 'name': 'user_id_bank_name',
251 'name': 'user_id_bank_account',
255 'name': 'user_id_last_inventory_sent',
259 'name': 'user_id_last_rfq_report_sent',
263 'name': 'user_id_last_productlist_sent',
267 'name': 'user_id_company_id',
274 xtype: 'PagingToolbar',
278 displayMsg : 'Displaying AutoAuth{0} - {1} of {2}',
279 emptyMsg : 'No AutoAuth found'
289 cls : 'x-btn-text-icon',
290 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
294 if (!_this.dialog) return;
295 _this.dialog.show( { id : 0 } , function() {
296 _this.grid.footer.onClick('first');
305 cls : 'x-btn-text-icon',
306 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
310 var s = _this.grid.getSelectionModel().getSelections();
311 if (!s.length || (s.length > 1)) {
312 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
315 if (!_this.dialog) return;
316 _this.dialog.show(s[0].data, function() {
317 _this.grid.footer.onClick('first');
327 cls : 'x-btn-text-icon',
328 icon : rootURL + '/Pman/templates/images/trash.gif',
332 Pman.genericDelete(_this, 'AutoAuth');
340 xtype: 'ColumnModel',
345 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
348 xtype: 'ColumnModel',
352 dataIndex : 'checksum',
353 renderer : function(v) { return String.format('{0}', v); }
360 xtype: 'LayoutRegion',
368 click : function (_self, e)
379 click : function (_self, e)
384 _this.dialog.el.mask("Saving");
385 _this.form.doAction("submit");