????

Your IP : 3.14.83.200


Current Path : C:/inetpub/vhost/qlhncn.gdtsolutions.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/qlhncn.gdtsolutions.vn/www/assets/index-3a3df6ce.js

import{r as i,C as D,j as e}from"./index-63f91612.js";import{R as N,C as t,d,h as G,e as g,O as w,f as k,B as T}from"./reactstrap.modern-db56c8a4.js";import"./Button-414de42d.js";import{B as S}from"./DataSelect-e63eac9d.js";import"./ButtonClose-c34d5952.js";import{F as B,C as E,I as V}from"./Form-cb88e45c.js";import{F as q}from"./FontAwesome4-d45b4e7a.js";import{I as K}from"./data-296b2b17.js";import{S as R}from"./Service-d4f3f4ee.js";import"./Select-7eb08d2a.js";import"./useTheme-88c8fc58.js";import"./classCallCheck-22a738c0.js";import"./createClass-ba011f43.js";import"./DialogCustomize-5c5d912b.js";import"./withStyles-8b7f6946.js";import"./capitalize-7bd4806a.js";import"./HTMLElementType-ee7a24b5.js";import"./OdataUtils-b4c5a51c.js";import"./FormControl-1241e33f.js";import"./Required-d6f950f1.js";import"./InputNumber-bbb3e938.js";import"./InputTime-7fc0744c.js";import"./TextArea-ca01d8ce.js";import"./DropdownList-84c9fae1.js";import"./Icon-8a6fd507.js";import"./DataTable-f53a5ff2.js";import"./SelectPanelMulti-840dd9be.js";import"./TransitionGroup-0c42f737.js";import"./refType-b95f6af7.js";import"./function-f31ac6e8.js";import"./BodyDialog-a84bcf80.js";import"./debounce-b2775af4.js";import"./TabsBasic-696a6c3d.js";import"./QuickSearch-f2b7424f.js";import"./QLLD_DM_TinhTrangViecLamEndpoint-1930e69f.js";const y={Nam:{field_name:"Nam",title:"Năm",type:"data-select",required:!0,dataSelect:{options:K,value_field:"Id",text_field:"Name",placeholder:"Chọn năm"},rules:{required:"Vui lòng nhập"}}};class F extends R{constructor(){super("NhaGiaoGDNNDayNhieuCSs")}getDataReport(s,l){return this.PostAuthen("/KetXuatBaoCao",s,{...l,odata:!1})}}const p=new F,xe=m=>{const[s,l]=i.useState("1"),[h,b]=i.useState({Nam:new Date().getFullYear(),GetAll:!0}),c=i.useRef(),u=i.useRef(),x=n=>{s===n?l():l(n)},j=i.useCallback((n,o)=>{b(a=>({...a,[n]:o}))},[]),f=i.useCallback(n=>{try{const o={...n,GetAll:!0};c.current.reload(o)}catch{}},[]),C=i.useCallback(async n=>{try{const o={...n,GetAll:!0},a=await p.getDataReport(o,{responseType:"blob"}),v=URL.createObjectURL(a);let r=document.createElement("a");r.href=v,r.download="Nhà giáo GDNN tại nhiều cơ sở",r.click()}catch(o){D(o.Message||"Thao tác không thành công!")}},[]);return e.jsxDEV(B,{ref:u,onSubmit:f,children:e.jsxDEV(N,{children:[e.jsxDEV(t,{lg:4,children:e.jsxDEV(d,{children:[e.jsxDEV(G,{className:"d-flex justify-content-between",children:e.jsxDEV(N,{className:"w-100 ms-0",children:e.jsxDEV(t,{md:"4",children:"Bộ lọc"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:62,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:61,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:60,columnNumber:13},globalThis),e.jsxDEV(g,{children:[e.jsxDEV(N,{children:e.jsxDEV(t,{md:"12",children:Object.entries(y).map(([n,o],a)=>!o.notMap&&e.jsxDEV(E,{colLabel:"4",colValue:"8",data:o,rules:o.rules,name:n,defaultValue:h&&h[n],onChange:j},a,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:71,columnNumber:25},globalThis))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:67,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:66,columnNumber:15},globalThis),e.jsxDEV(w,{open:s,toggle:x},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:86,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:65,columnNumber:13},globalThis),e.jsxDEV(k,{className:"d-flex justify-content-end",children:[e.jsxDEV(S,{onClick:()=>{C({...u.current.getData(),Mode:"download_excel"})},size:"sm",color:"success",children:"Xuất Excel"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:89,columnNumber:15},globalThis),e.jsxDEV(T,{size:"sm",type:"submit",color:"danger",children:[e.jsxDEV(q,{style:{marginRight:"0.5rem"},fa:"file-pdf-o"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:99,columnNumber:17},globalThis),"Xuất PDF"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:98,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:88,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:59,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:58,columnNumber:9},globalThis),e.jsxDEV(t,{lg:8,children:e.jsxDEV(d,{children:e.jsxDEV(g,{style:{borderRadius:"1rem"},children:e.jsxDEV(V,{ref:c,endpoint:p,...m},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:108,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:107,columnNumber:13},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:106,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:105,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:57,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/NhaGiaoGDNNNhieuCoSo/index.jsx",lineNumber:56,columnNumber:5},globalThis)};export{xe as default};