const e="Per",r="Per",a=[{field:"PerId",headerName:"PerId",width:130},{field:"PerApel",headerName:"PerApel",width:130},{field:"PerNom",headerName:"PerNom",width:130},{field:"PerSex",headerName:"PerSex",width:130},{field:"PerCUIT",headerName:"PerCUIT",width:130},{field:"PerTipDoc",headerName:"PerTipDoc",width:130},{field:"PerNumDoc",headerName:"PerNumDoc",width:130},{field:"PerTipCiv",headerName:"PerTipCiv",width:130},{field:"PerTipEdu",headerName:"PerTipEdu",width:130},{field:"PerFchNac",headerName:"PerFchNac",width:130,type:"date"},{field:"PerHijos",headerName:"PerHijos",width:130},{field:"PerMieHog",headerName:"PerMieHog",width:130},{field:"PerCntCarg",headerName:"PerCntCarg",width:130},{field:"IVANom",headerName:"Iva nombre",width:130},{field:"PerFall",headerName:"PerFall",width:130},{field:"PerDocumento",headerName:"PerDocumento",width:130},{field:"PerTipMil",headerName:"PerTipMil",width:130}],i=[{field:"PerId",headerName:"PerId",width:130},{field:"PerApel",headerName:"PerApel",width:130,type:"text",required:!0,minLength:2,maxLength:50},{field:"PerSex",headerName:"PerSex",width:130,type:"supercombo",supercombo:{tabla:"dmn",campoId:"DmnAbr",campoDisplay:"DmnDet",condicion:"DmnFilt = 'TIPSEX'",recargaAlAbrir:!0}},{field:"PerNom",headerName:"PerNom",width:130,required:!0},{field:"PerFchNac",headerName:"PerFchNac",width:130,type:"date",required:!0},{field:"PerHijos",headerName:"PerHijos",width:130,required:!0},{field:"PerMieHog",headerName:"PerMieHog",width:130,required:!0},{field:"PerCntCarg",headerName:"PerCntCarg",width:130,required:!0},{field:"IVAId",headerName:"Iva",width:130,type:"supercombo",supercombo:{tabla:"iva",campoId:"IVAId",campoDisplay:"IVANom",condicion:"",recargaAlAbrir:!0}},{field:"PerFall",headerName:"PerFall",width:130,required:!0},{field:"PerDocumento",headerName:"PerDocumento",width:130,minLength:8,maxLength:8},{field:"PerTipMil",headerName:"PerTipMil",width:130,required:!0},{field:"PerCUIT",headerName:"PerCUIT",width:130,required:!0,minLength:11,maxLength:11},{field:"PerTipDoc",headerName:"PerTipDoc",width:130,required:!0},{field:"PerNumDoc",headerName:"PerNumDoc",width:130,required:!0}],d="PerId",t={list:"/api/list",create:"/api/create",update:"/api/update",delete:"/api/delete"},o={showPrimaryKeyInCreate:!1,showPrimaryKeyInUpdate:!1,enableSearch:!0,searchPlaceholder:"Buscar por nombre",searchDebounceMs:500,autocompletes:[{label:"Iva",parameterToUpdate:"condicionAdicional",tabla:"iva",valueField:"IVAId",labelField:"IVANom",condicion:"",query:"p.IVAId = ${value}",recargaAlAbrir:!0,type:"supercombobox",formField:"IVAId"},{label:"PerSex",parameterToUpdate:"condicionAdicional",tabla:"dmn",valueField:"DmnAbr",labelField:"DmnDet",condicion:"DmnFilt = 'TIPSEX'",query:"p.PerSex = ${value}",recargaAlAbrir:!0,type:"supercombobox",formField:"PerSex"}]},l={tabla:"Per as p LEFT JOIN iva as i ON p.IVAId = i.IVAId",campoId:"PerId",campoDisplay:"PerNom",camposBusqueda:["PerNom","PerApel","PerCUIT"],condicion:"",otrosCampos:"p.*, i.*",orderBy:"PerNom",limit:"20"},m={entityName:e,tableName:r,columns:a,formFields:i,primaryKey:d,endpoints:t,options:o,tableParams:l};export{a as columns,m as default,t as endpoints,e as entityName,i as formFields,o as options,d as primaryKey,r as tableName,l as tableParams};
