????
Current Path : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/ |
Current File : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/Index-f334a8da.js |
import{s as w,r as s,C as V,t as G,n as T,j as o}from"./index-fa055cb8.js";import{d as v,e as j}from"./reactstrap.modern-274e1102.js";import{F as E,u as I}from"./FormControl-dda7d30a.js";import"./FontAwesome4-64371a0f.js";import{D as L}from"./DataTable-fad8b46b.js";import{c as _,f as y}from"./FormListControl-c9d1cc74.js";import{D as A}from"./DetailCoSoGDNN-e17a3f88.js";import{a as Q}from"./ModalPhuongXa-4c846458.js";import{M as H}from"./DetailThongTinCoSoGDNN-d97e7b7d.js";import"./Transition-c4233574.js";import"./Required-11df292c.js";import"./InputNumber-092cea71.js";import"./Button-b6c26fff.js";import"./InputTime-cf0160db.js";import"./createClass-5c3a3f66.js";import"./OdataUtils-36531977.js";import"./DropdownList-1816cc1a.js";import"./Select-d5b8e2a0.js";import"./classCallCheck-22a738c0.js";import"./SelectCustom-028e0a1b.js";import"./ButtonLoad-5b8d7df7.js";import"./TextHuyenPhuongXa-91b9e817.js";import"./ButtonClose-01990b88.js";import"./QuickSearch-2b8999c3.js";import"./withStyles-fa9fb6d9.js";import"./capitalize-d666ae9b.js";import"./DialogCustomize-3c3737d6.js";import"./interopRequireDefault-f95a7153.js";import"./Slide-50179c26.js";import"./ListItem-1dafb2d8.js";import"./Icon-d973dfc5.js";import"./Skeleton-7cb68aa7.js";import"./PhanRow-9a886c05.js";import"./DataSelect-7a237583.js";import"./SelectPanelMulti-c769273a.js";import"./ModalChiTietGiaDinh-0c4f19f4.js";import"./BodyDialog-341140bb.js";import"./TabsBasic-86b6759a.js";import"./DetailFormControl-8e322b93.js";import"./DetailNhaGiaoTaiCoSoGDNN-eda5a6d0.js";import"./ListFormControl-1ff1507d.js";import"./FormListControl-ba00e40f.js";import"./InfoNguoiLD-c8771082.js";import"./NguoiLaoDongViewSo-690e82f5.js";/* empty css *//* empty css */import"./DataEditTS-c5c4693c.js";import"./ModalImport-d6ea57a2.js";import"./ColumnsImport-32eb9e81.js";import"./ListChooseGDNNs-1398b07e.js";import"./index-18cf65ce.js";import"./DefaultMenu-d589dbae.js";import"./DetailHocVienTaiCoSoGDNN-8e4d6b27.js";import"./InfoHocVien-df0bb43d.js";import"./FormCheckBoxDTUT-b555d270.js";import"./InputHuyenPhuongXa-0213ab70.js";/* empty css */import"./FullScreenDialog-72dcf417.js";import"./Toolbar-8c2db3d7.js";import"./createStyles-cfd966dc.js";const F=w.div` position: absolute; top: -12px; left: 12px; background-color: #fff; color: #374dc5; font-weight: bold; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; /* number of lines to show */ -webkit-box-orient: vertical; `,Xe=()=>{const[t,h]=s.useState(null),[n,a]=s.useState({}),[p,S]=s.useState(!1),[D,b]=s.useState(!1),[u,N]=s.useState(),[c,k]=s.useState(),{handleChange:f,handleValidate:C}=I(n,y,e=>a(e)),d=s.useRef(),m=s.useCallback(()=>d.current&&d.current.onQueryChange(),[d]),l=s.useCallback((e,i)=>{e==="add"?(h(null),a({})):e==="edit"?(h(i.Id),a({...i})):a({}),S(!p)},[p]);s.useCallback(async()=>{if(!c)V("Bạn chưa nhập địa chỉ");else if(C()){const e=t?"PATCH":"POST",i=t?`QLLD_CoSoGDNN(${t})`:"QLLD_CoSoGDNN",r=t?"Cập nhật thành công":"Thêm thành công";delete n.Id,delete n.tableData,delete n.PhuongXa,delete n.QLLD_DM_LoaiHinhCoSoGDNN,delete n.QLLD_DM_CapQuanLyCoSoGDNN;const g={...n,DiaChi:c};await G(i,e,JSON.stringify(g)).then(P=>{l(),m(),T(r)})}},[C,t,n,c,l,m]);const x=e=>{var i;return e.type!=="popup-select"?n[e.field_name]:n[(i=e.popupSelect)==null?void 0:i.selectColumn]};return s.useCallback((e,i)=>(n.SoDinhDanhHoGD||e.field_name==="QuanHe"&&(e.disabled=!0),e.field_name==="DiaChi"?o.jsxDEV(o.Fragment,{children:o.jsxDEV(Q,{lablel:"Địa chỉ",setDiaChi:k,url:"QLLD_CoSoGDNN",nameSelect:"DiaChi",ID:u,disabled:"tinh"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:99,columnNumber:13},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:98,columnNumber:11},globalThis):o.jsxDEV(v,{style:{border:"none"},children:[o.jsxDEV(F,{style:{left:"0"},title:e.title,children:[e.title," ",e.required&&o.jsxDEV("span",{style:{color:"red"},children:" *"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:113,columnNumber:44},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:112,columnNumber:11},globalThis),o.jsxDEV(j,{style:{paddingLeft:"0",paddingTop:"10px"},onDragStart:r=>r.preventDefault(),children:o.jsxDEV(E,{data:{...e,hidden_label:!0,disabled:!!(t&&e.disabledWhenEdit)},value:x(e),onChange:(r,g)=>f(r,g),inline:!1},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:116,columnNumber:13},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:115,columnNumber:11},globalThis)]},i,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:111,columnNumber:9},globalThis)),[u,x,n.SoDinhDanhHoGD,f,t]),o.jsxDEV(o.Fragment,{children:[o.jsxDEV(v,{children:o.jsxDEV(j,{className:"rounded",children:o.jsxDEV(L,{tableRef:d,title:"Danh sách cơ sở giáo dục nghề nghiệp",url:"QLLD_CoSoGDNN",columns:_,onEdit:{onClick:(e,i)=>{l("edit",i),N(i.Id)}},onDelete:{},onAdd:{onClick:()=>{l("add",null),N()}},onRowClick:(e,i)=>{b(!0),N(i.Id)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:133,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:132,columnNumber:9},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:131,columnNumber:7},globalThis),p&&o.jsxDEV(H,{reloadTableBig:m,editThongTin:n,Id:t,setEditThongTin:l,reloadAll:m},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:159,columnNumber:9},globalThis),D&&o.jsxDEV(A,{ID:u,isOpen:D,isClose:()=>b(!1)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:167,columnNumber:22},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/CoSoGDNN/Index.jsx",lineNumber:130,columnNumber:5},globalThis)};export{F as WrapperText,Xe as default};