const e="adjtip",d="Tipos de adjuntos",t=[{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={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"},p={tableName:e,entityName:d,columns:t,formFields:a,primaryKey:r,options:i,tableParams:o};export{t as columns,p as default,d as entityName,a as formFields,i as options,r as primaryKey,e as tableName,o as tableParams};
