????

Your IP : 18.217.150.104


Current Path : C:/inetpub/vhost/quypctt.nextform.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/quypctt.nextform.vn/www/assets/Index-93511dd0.js

var l=Object.defineProperty;var d=(o,e,t)=>e in o?l(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var m=(o,e,t)=>(d(o,typeof e!="symbol"?e+"":e,t),t);import{r as h,j as i,R as u}from"./index-3ac6b886.js";import{D as c}from"./DataTable-4f7de56a.js";import{I as g}from"./IndexDetail-64755c17.js";import"./useTheme-cc71593c.js";import"./OdataUtils-69f581ff.js";import"./Button-d32d698a.js";import"./utils-1da25c48.js";import"./ButtonDropdown-77330e2e.js";import"./Dropdown-fd6014de.js";import"./DropdownToggle-ce0bc76b.js";import"./Popper-c3a92014.js";import"./InputTime-6c25e67a.js";import"./InputNumber-e0e8281b.js";import"./FontAwesome4-4d1c8e97.js";import"./Input-a404c875.js";import"./withStyles-be05542d.js";import"./possibleConstructorReturn-b2959138.js";import"./classCallCheck-22a738c0.js";import"./FullScreenDialog-3e8faf30.js";import"./DialogCustomize-f58e33cd.js";import"./capitalize-2c2e3657.js";import"./Transition-41b94a89.js";import"./debounce-b2775af4.js";import"./DataSelect-21292454.js";import"./Button-9ef33eb6.js";import"./createStyles-cfd966dc.js";import"./Row-ef702d16.js";import"./TextArea-5c5d2643.js";import"./DropdownList-92e339e1.js";import"./Modal-834c96f4.js";import"./Fade-c1d8e31e.js";import"./function-c7c2f09a.js";import"./Required-a585e744.js";import"./SelectCustom-a3812854.js";import"./SelectPanelMulti-30b66e05.js";import"./TransitionGroup-a6d13137.js";import"./Collapse-9244e6b2.js";import"./CardBody-09907775.js";import"./CardHeader-f1e86ecf.js";import"./Index-a844cdd2.js";const D=[{field:"Id",dataID:!0,type:"numeric",hidden:!0},{title:"Tên nhóm",field:"Name",type:"string",dataCheck:!0,searchable:!0,defaultSort:"asc"},{title:"Tổng số đơn vị",field:"RP_NhomDoiTuong_DonVi.Id",type:"string",dataRef:["RP_NhomDoiTuong_DonVi"],render:o=>i.jsx("span",{children:i.jsx("b",{children:o.RP_NhomDoiTuong_DonVi.length===0?"-":o.RP_NhomDoiTuong_DonVi.length})}),editable:"never",cellStyle:{textAlign:"center"}},{title:"IsChonPhongBan",field:"IsChonPhongBan",type:"string",hidden:!0}],r=u.createRef(),I=()=>r.current&&r.current.onQueryChange();class mt extends h.Component{constructor(t){super(t);m(this,"reloadTableCustom",()=>{I()});this.state={openDetail:!1,NhomDoiTuongId:null,IsChonPhongBan:null}}render(){const{openDetail:t,NhomDoiTuongId:s,Name:p,IsChonPhongBan:a}=this.state;return i.jsxs("div",{className:"bg-white rounded p-3",children:[i.jsx(c,{tableRef:r,title:"NHÓM ĐỐI TƯỢNG",url:"RP_NhomDoiTuong",columns:D,selectType:"withColumns",onAdd:{disabled:!1},onEdit:{},onDelete:{},onRowClick:(T,n)=>this.setState({openDetail:!0,NhomDoiTuongId:n.Id,Name:n.Name,IsChonPhongBan:n.IsChonPhongBan})}),t&&i.jsx(g,{nhomDoiTuongId:s,IsChonPhongBan:a,Name:p,reloadTableIndex:this.reloadTableCustom(),open:t,onClose:()=>this.setState({openDetail:!1})})]})}}export{mt as default};