????

Your IP : 3.15.34.191


Current Path : C:/inetpub/vhost/qlhncn.gdtsolutions.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/qlhncn.gdtsolutions.vn/www/assets/CreateDV-d0427d61.js

var a=Object.defineProperty;var l=(t,s,e)=>s in t?a(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var n=(t,s,e)=>(l(t,typeof s!="symbol"?s+"":s,e),e);import{r as h,h as c,j as o,R as d}from"./index-63f91612.js";import{C as m}from"./DialogCustomize-5c5d912b.js";import{D as u}from"./DataTable-f53a5ff2.js";const p=[{field:"ID",dataID:!0,type:"string",hidden:!0},{title:"Mã đơn vị",field:"MaDonVi",type:"string",dataCheck:!0,searchable:!0,defaultSort:"asc"},{title:"Tên đơn vị",field:"TenDonVi",type:"string",dataCheck:!0,searchable:!0},{field:"ParentID",hidden:!0}],D=d.createRef();class v extends h.Component{constructor(e){super(e);n(this,"reloadTableChild",()=>{this.props.reloadTable&&this.props.reloadTable()});n(this,"handleSelect",e=>{const i={ParentID:this.props.ID};c(`DonVis('${e.ID}')`,"PATCH",JSON.stringify(i)).then(()=>{this.props.reloadList(),this.props.onClose(),this.reloadTableChild()})});this.state={}}render(){const e=[];return e.push("ParentID eq null"),o.jsxDEV("div",{children:o.jsxDEV(m,{title:"Thêm đơn vị",open:this.props.open,handleClose:this.props.onClose,maxWidth:"md",children:o.jsxDEV(u,{tableRef:D,onRefresh:!1,url:"DonVis",where:e.join(" and "),columns:p,selectType:"withColumns",onActions:[{icon:"check",tooltip:"Chọn",onClick:(i,r)=>this.handleSelect(r)}]},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/System/DonVi/ThemDonViTrucThuoc/CreateDV.jsx",lineNumber:62,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/System/DonVi/ThemDonViTrucThuoc/CreateDV.jsx",lineNumber:61,columnNumber:9},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/System/DonVi/ThemDonViTrucThuoc/CreateDV.jsx",lineNumber:60,columnNumber:7},this)}}export{v as C};