????
Current Path : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/ |
Current File : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/index-b84c8089.js |
import{r as a,C as k,j as e}from"./index-fa055cb8.js";import{R as c,C as u,d as C,h as D,e as p,O as S,f as y,B as E}from"./reactstrap.modern-274e1102.js";import"./Button-b6c26fff.js";import{B as V}from"./ButtonLoad-5b8d7df7.js";import"./ButtonClose-01990b88.js";import{F as K,C as _,I}from"./Form-44494cfc.js";import{F as R}from"./FontAwesome4-64371a0f.js";import{a as b,C as G}from"./PhanRow-9a886c05.js";import{g as F}from"./QLLD_DM_TinhTrangViecLamEndpoint-619b3d52.js";import{c as L}from"./data-421074dc.js";import{S as A}from"./Service-b8ed62b2.js";import"./Transition-c4233574.js";import"./Select-d5b8e2a0.js";import"./OdataUtils-36531977.js";import"./classCallCheck-22a738c0.js";import"./createClass-5c3a3f66.js";import"./withStyles-fa9fb6d9.js";import"./capitalize-d666ae9b.js";import"./DialogCustomize-3c3737d6.js";import"./interopRequireDefault-f95a7153.js";import"./FormControl-dda7d30a.js";import"./Required-11df292c.js";import"./InputNumber-092cea71.js";import"./InputTime-cf0160db.js";import"./DropdownList-1816cc1a.js";import"./SelectCustom-028e0a1b.js";import"./TextHuyenPhuongXa-91b9e817.js";import"./QuickSearch-2b8999c3.js";import"./Slide-50179c26.js";import"./ListItem-1dafb2d8.js";import"./Icon-d973dfc5.js";import"./Skeleton-7cb68aa7.js";import"./DataTable-fad8b46b.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"./data-152c9ff8.js";const H={NamTuyenSinh:{field_name:"NamTuyenSinh",title:"Năm",type:"select-year",required:!0,rules:{required:"Vui lòng nhập"}},NganhNgheDaoTao_Ids:{field_name:"NganhNgheDaoTao_Ids",title:"Ngành nghề",type:"select-async-multi",dataSelect:{endpoint:F.getData,value_field:"Id",text_field:"Name",conditions:L}},CoSoGDNN_Id:{field_name:"CoSoGDNN_Id",title:"Cơ sở",type:"data-select",disabled:!b,dataSelect:{url:"QLLD_CoSoGDNN",value_field:"Id",text_field:"TenCSGDNN",placeholder:"Chọn cơ sở"}}};class O extends A{constructor(){super("ChiTieuTuyenSinh")}getDataReport(l,r){return this.PostAuthen("/KetXuatBaoCao",l,{...r,odata:!1})}}const x=new O,Se=g=>{const[l,r]=a.useState("1"),[T,f]=a.useState({NamTuyenSinh:new Date().getFullYear(),CoSoGDNN_Id:b?null:G}),s=a.useRef(),N=a.useRef(),j=o=>{l===o?r():r(o)},v=a.useCallback((o,n)=>{f(i=>({...i,[o]:n}))},[]),w=a.useCallback(o=>{var n,i;try{const m={...o,NganhNgheDaoTao_Ids:((n=o==null?void 0:o.NganhNgheDaoTao_Ids)==null?void 0:n.map(t=>t==null?void 0:t.Id))||[]};s!=null&&s.current&&((i=s==null?void 0:s.current)==null||i.reload(m))}catch{}},[]),B=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(d=>d==null?void 0:d.Id))||[]},m=await x.getDataReport(i,{responseType:"blob"}),t=URL.createObjectURL(m);let h=document.createElement("a");h.href=t,h.download="CHỈ TIÊU TUYẾN SINH",h.click()}catch(i){k(i.Message||"Thao tác không thành công!")}},[]);return e.jsxDEV(K,{ref:N,onSubmit:w,children:e.jsxDEV(c,{children:[e.jsxDEV(u,{lg:4,children:e.jsxDEV(C,{children:[e.jsxDEV(D,{className:"d-flex justify-content-between",children:e.jsxDEV(c,{className:"w-100 ms-0",children:e.jsxDEV(u,{md:"4",children:"Bộ lọc"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:64,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:63,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:62,columnNumber:13},globalThis),e.jsxDEV(p,{children:[e.jsxDEV(c,{children:e.jsxDEV(u,{md:"12",children:Object.entries(H).map(([o,n],i)=>!n.notMap&&e.jsxDEV(_,{colLabel:"4",colValue:"8",data:n,rules:n.rules,name:o,defaultValue:T&&T[o],onChange:v},i,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:73,columnNumber:25},globalThis))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:69,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:68,columnNumber:15},globalThis),e.jsxDEV(S,{open:l,toggle:j},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:88,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:67,columnNumber:13},globalThis),e.jsxDEV(y,{className:"d-flex justify-content-end",children:[e.jsxDEV(V,{onClick:()=>{B({...N.current.getData(),Mode:"download_excel"})},size:"sm",color:"success",children:"Xuất Excel"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:91,columnNumber:15},globalThis),e.jsxDEV(E,{size:"sm",type:"submit",color:"danger",children:[e.jsxDEV(R,{style:{marginRight:"0.5rem"},fa:"file-pdf-o"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:101,columnNumber:17},globalThis),"Xuất PDF"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:100,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:90,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:61,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:60,columnNumber:9},globalThis),e.jsxDEV(u,{lg:8,children:e.jsxDEV(C,{children:e.jsxDEV(p,{style:{borderRadius:"1rem"},children:e.jsxDEV(I,{ref:s,endpoint:x,...g},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:110,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:109,columnNumber:13},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:108,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:107,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:59,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/BaoCaoChiTieuTuyenSinh/index.jsx",lineNumber:58,columnNumber:5},globalThis)};export{Se as default};