Ext.ns('EMBrowser');

EMBrowser.CBwaterusagetype = Ext.extend(Ext.form.ComboBox,{
   //frame:true,
  store:new Ext.data.JsonStore({
    fields:['usagetype_id', 'usagetype_name'],
    autoLoad: true,
    url: '/process/EMBrowser/database/water_usagetype.php'
  })
  ,displayField:'usageype_name'
  ,valueField:'usagetype_id'
  ,mode:'local'
  ,forceSelection: true
  ,width:220
  ,triggerAction: 'all'
  ,editable: false
  ,emptyText:'Selectionnez un type d\'utilisation...'
  ,blankText:'Le champ est obligatoire'
  ,initComponent:function() {
    var config = {}; // eo config object
    
    Ext.apply(this, Ext.apply(this.initialConfig, config));
    EMBrowser.CBwaterusagetype.superclass.initComponent.apply(this, arguments);
  } // end of function initComponent
  ,onRender:function() {
    EMBrowser.CBwaterusagetype.superclass.onRender.apply(this, arguments);
  } // eo function onRender

});

Ext.reg('EMBrowserCBwaterusagetype', EMBrowser.CBwaterusagetype);

