const e="adjtip",t="Tipos de adjuntos",d=[{field:"AdjTipId",headerName:"Identificador",width:100,type:"number"},{field:"AdjTipNom",headerName:"Nombre",width:200,type:"text"},{field:"AdjTipAbr",headerName:"Abreviatura",width:120,type:"text"},{field:"AdjTipVinc",headerName:"Vínculo",width:100,type:"text",hidden:!0},{field:"EsContratoDMN",headerName:"Es contrato",width:100,type:"text"},{field:"UsrNomApe",headerName:"Usuario",width:210,type:"text"},{field:"EmpId",headerName:"Empresa",width:100,type:"number"},{field:"AdjFch",headerName:"Fecha",width:170,type:"date"}],a=[{field:"AdjTipId",headerName:"Identificador",type:"number",hidden:!0},{field:"AdjTipNom",headerName:"Nombre",type:"text",required:!0},{field:"AdjTipAbr",headerName:"Abreviatura",type:"text",required:!0,width:120},{field:"AdjTipVinc",headerName:"Vínculo",type:"text",hidden:!0},{field:"AdjTipCtt",headerName:"Contrato generado por Promp.t",type:"supercombobox",supercombo:{tabla:"dmn",campoId:"DmnAbr",campoDisplay:"DmnDet",condicion:"DmnFilt = 'SINOIN'",recargaAlAbrir:!0},hidden:!0},{field:"AdjTipCttCl",headerName:"Generador de contrato",type:"text",hidden:!0},{field:"UsrId",headerName:"Usuario",type:"number",hidden:!0},{field:"EmpId",headerName:"Empresa",type:"number",hidden:!0}],r="AdjTipId",i={list:"/api/adjtip/list",create:"/api/adjtip/create",update:"/api/adjtip/update",delete:"/api/adjtip/delete"},p={showPrimaryKeyInCreate:!1,showPrimaryKeyInUpdate:!1,enableSearch:!0,searchPlaceholder:"Buscar por nombre",searchDebounceMs:500,useEmpId:!0},o={camposBusqueda:["AdjTipNom"],tabla:"adjtip LEFT JOIN usr  ON adjtip.UsrId = usr.UsrId",campoId:"AdjTipId",campoDisplay:"AdjTipNom",condicion:"adjtip.EmpId = ${empId}",otrosCampos:"adjtip.*, IF(AdjTipCtt = 1, 'SI', 'NO') AS EsContratoDMN, CONCAT(UsrNom, ' ', UsrApel) AS UsrNomApe",orderBy:"AdjTipNom",limit:"20"},m={tableName:e,entityName:t,columns:d,formFields:a,primaryKey:r,endpoints:i,options:p,tableParams:o};export{d as columns,m as default,i as endpoints,t as entityName,a as formFields,p as options,r as primaryKey,e as tableName,o as tableParams};
