????
Current Path : C:/inetpub/vhost/hotrochinhsach.nextform.vn/www/assets/ |
Current File : C:/inetpub/vhost/hotrochinhsach.nextform.vn/www/assets/IndexTanSuat-7d1d47b3.js |
var s=Object.defineProperty;var i=(r,t,e)=>t in r?s(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>(i(r,typeof t!="symbol"?t+"":t,e),e);import{r as d,h as u,j as l,R as o}from"./index-3ac6b886.js";import{D as c}from"./DataTable-4f7de56a.js";import"./useTheme-cc71593c.js";import"./OdataUtils-69f581ff.js";const h=[{field:"Id",dataID:!0,type:"guid",hidden:!0},{title:"STT",field:"STT",type:"string",dataCheck:!0,defaultSort:"asc",cellStyle:{textAlign:"center"}},{title:"Tên",field:"Name",type:"string",dataCheck:!0,searchable:!0},{title:"Số lần thực hiện ",field:"SoLanGui",type:"numeric",dataCheck:!0,cellStyle:{textAlign:"center"}}],a=o.createRef(),p=()=>a.current&&a.current.onQueryChange();class g extends d.Component{constructor(e){super(e);n(this,"onDelete",e=>{u(`DM_TanSuat(guid'${e.Id}')`,"PATCH",JSON.stringify({IsDeleted:!0}),!0).then(T=>{p()})});this.state={}}render(){const e=[];return e.push(`IsDeleted ne ${!0}`),l.jsx("div",{className:"bg-white rounded p-3",children:l.jsx(c,{tableRef:a,title:"DANH MỤC TẦN SUẤT",url:"DM_TanSuat",columns:h,where:e.join(" and "),selectType:"withColumns",onAdd:{disabled:!1},onEdit:{},onDelete:{}})})}}export{g as default};