????

Your IP : 3.144.235.50


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

import{r as a,C,j as e}from"./index-63f91612.js";import{R as u,C as r,d as p,h as w,e as b,O as D,f as y,B as k}from"./reactstrap.modern-db56c8a4.js";import"./Button-414de42d.js";import{B as K}from"./DataSelect-e63eac9d.js";import"./ButtonClose-c34d5952.js";import{F as G,C as L,I as B}from"./Form-cb88e45c.js";import{F as E}from"./FontAwesome4-d45b4e7a.js";import{S as H}from"./Service-d4f3f4ee.js";import{f as q}from"./QLLD_DM_TinhTrangViecLamEndpoint-1930e69f.js";import{i as x,k as I}from"./FormControl-1241e33f.js";import{c as _}from"./data-de65a360.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"./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"./data-296b2b17.js";class R extends H{constructor(){super("BaoCaoKQGiaiQuyetViecLam")}getDataReport(t,l){return this.PostAuthen("/KetXuatBaoCao",t,{...l,odata:!1})}}const f=new R,F={TuNgay:{field_name:"TuNgay",title:"Từ ngày",type:"date",required:!0,rules:{required:"Vui lòng nhập"}},DenNgay:{field_name:"DenNgay",title:"Đến ngày",type:"date",required:!0,rules:{required:"Vui lòng nhập"}},CoSoGDNN_Id:{field_name:"CoSoGDNN_Id",title:"Cơ sở",type:"data-select",disabled:!x,dataSelect:{url:"QLLD_CoSoGDNN",value_field:"Id",text_field:"TenCSGDNN",placeholder:"Chọn cơ sở"}},NganhNgheDaoTao_Ids:{field_name:"NganhNgheDaoTao_Ids",title:"Ngành nghề",type:"select-async-multi",dataSelect:{endpoint:q.getData,value_field:"Id",text_field:"Name",conditions:_}}},Te=d=>{const[t,l]=a.useState("1"),[h,V]=a.useState({NamTuyenSinh:new Date().getFullYear(),CoSoGDNN_Id:x?null:I,TuNgay:null,DenNgay:null}),g=a.useRef(),N=a.useRef(),j=o=>{t===o?l():l(o)},v=a.useCallback((o,n)=>{V(i=>({...i,[o]:n}))},[]),S=a.useCallback(o=>{var n;try{const i={...o,NganhNgheDaoTao_Ids:((n=o==null?void 0:o.NganhNgheDaoTao_Ids)==null?void 0:n.map(s=>s==null?void 0:s.Id))||[]};g.current.reload(i)}catch{}},[]),T=a.useCallback(async o=>{var n;try{const i={...o,NganhNgheDaoTao_Ids:((n=o==null?void 0:o.NganhNgheDaoTao_Ids)==null?void 0:n.map(c=>c==null?void 0:c.Id))||[]},s=await f.getDataReport(i,{responseType:"blob"}),Q=URL.createObjectURL(s);let m=document.createElement("a");m.href=Q,m.download="TỔNG HỢP HỌC SINH/SINH VIÊN GIẢI QUYẾT VIỆC LÀM",m.click()}catch(i){C(i.Message||"Thao tác không thành công!")}},[]);return e.jsxDEV(G,{ref:N,onSubmit:S,children:e.jsxDEV(u,{children:[e.jsxDEV(r,{lg:4,children:e.jsxDEV(p,{children:[e.jsxDEV(w,{className:"d-flex justify-content-between",children:e.jsxDEV(u,{className:"w-100 ms-0",children:e.jsxDEV(r,{md:"4",children:"Bộ lọc"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:66,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:65,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:64,columnNumber:13},globalThis),e.jsxDEV(b,{children:[e.jsxDEV(u,{children:e.jsxDEV(r,{md:"12",children:Object.entries(F).map(([o,n],i)=>!n.notMap&&e.jsxDEV(L,{colLabel:"4",colValue:"8",data:n,rules:n.rules,name:o,defaultValue:h&&h[o],onChange:v},i,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:75,columnNumber:25},globalThis))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:71,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:70,columnNumber:15},globalThis),e.jsxDEV(D,{open:t,toggle:j},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:90,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:69,columnNumber:13},globalThis),e.jsxDEV(y,{className:"d-flex justify-content-end",children:[e.jsxDEV(K,{onClick:()=>{T({...N.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/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:93,columnNumber:15},globalThis),e.jsxDEV(k,{size:"sm",type:"submit",color:"danger",children:[e.jsxDEV(E,{style:{marginRight:"0.5rem"},fa:"file-pdf-o"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:103,columnNumber:17},globalThis),"Xuất PDF"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:102,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:92,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:63,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:62,columnNumber:9},globalThis),e.jsxDEV(r,{lg:8,children:e.jsxDEV(p,{children:e.jsxDEV(b,{style:{borderRadius:"1rem"},children:e.jsxDEV(B,{ref:g,endpoint:f,...d},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:112,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:111,columnNumber:13},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:110,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:109,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:61,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/qlhncn.gdtsolutions.vn/src/views/BaoCaoThongKe/KQHSSVGiaiQuyetViecLam/index.jsx",lineNumber:60,columnNumber:5},globalThis)};export{Te as default};