jQuery(function($){

	$("#DocumentosExpediente").rup_table({
		rowNum:20,
		url: "../aa21b25s01",
		colNames: [
		    "idDocExp",       
			"cserv25",
			"cexpe25",
			"aexpe25",
			"nexpe25",
			"tdocu25",
			"cdocu25",
			"ndocu25",
			"texto25",
			"fanot25",
			"aanot25",
			"nanot25"
		],
		colModel: [
		     { 	name: "idDocExp", 
 				label: "idDocExp",
 				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "cserv25", 
			 	label: "cserv25",
				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "cexpe25", 
			 	label: "cexpe25",
				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "aexpe25", 
			 	label: "aexpe25",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "nexpe25", 
			 	label: "nexpe25",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "tdocu25", 
			 	label: "tdocu25",
				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "cdocu25", 
			 	label: "cdocu25",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "ndocu25", 
			 	label: "ndocu25",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "texto25", 
			 	label: "texto25",
				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "fanot25", 
			 	label: "fanot25",
				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "aanot25", 
			 	label: "aanot25",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "nanot25", 
			 	label: "nanot25",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			}
        ],

        model:"Aa21b25s01",
        usePlugins:[
			"formEdit",
        	"feedback",
			"toolbar",
        	"contextMenu",
        	"fluid",
        	"filter",
        	"search",
        	"multiselection"
         	],
		primaryKey: "idDocExp",
		sortname: "cserv25",
		sortorder: "asc",
		loadOnStartUp: true,
        formEdit:{
        	detailForm: "#DocumentosExpediente_detail_div",
			fillDataMethod: "clientSide",
         	validate:{ 
    			rules:{
    				"cserv25":{
						required: false
    					},
    				"cexpe25":{
						required: false
    					},
    				"aexpe25":{
						required: false
    					},
    				"nexpe25":{
						required: false
    					},
    				"tdocu25":{
						required: false
    					},
    				"cdocu25":{
						required: false
    					},
    				"ndocu25":{
						required: false
    					},
    				"texto25":{
						required: false
    					},
    				"fanot25":{
						required: false
    					},
    				"aanot25":{
						required: false
    					},
    				"nanot25":{
						required: false
    					}
    				}
    		}
        }
	});
});