????
Current Path : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/ |
Current File : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/index-98221d3c.js |
import{r as a,C as k,j as e}from"./index-fa055cb8.js";import{R as c,C as g,d as T,h as B,e as x,O as E,f as _,B as y}from"./reactstrap.modern-274e1102.js";import"./Button-b6c26fff.js";import{B as K}from"./ButtonLoad-5b8d7df7.js";import"./ButtonClose-01990b88.js";import{F as V,C as I,I as S}from"./Form-44494cfc.js";import{F as R}from"./FontAwesome4-64371a0f.js";import{a as f,C as G}from"./PhanRow-9a886c05.js";import{g as L}from"./QLLD_DM_TinhTrangViecLamEndpoint-619b3d52.js";import{c as F}from"./data-421074dc.js";import{S as O}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 A={CoSoGDNN_Id:{field_name:"CoSoGDNN_Id",title:"Cơ sở",type:"data-select",disabled:!f,dataSelect:{url:"QLLD_CoSoGDNN",value_field:"Id",text_field:"TenCSGDNN"}},NganhNgheDaoTao_Ids:{field_name:"NganhNgheDaoTao_Ids",title:"Ngành nghề",type:"select-async-multi",dataSelect:{endpoint:L.getData,value_field:"Id",text_field:"Name",conditions:F}},TuNgay:{field_name:"TuNgay",title:"Từ ngày",type:"date",required:!0},DenNgay:{field_name:"DenNgay",title:"Đến ngày",type:"date",required:!0}};class H extends O{constructor(){super("BaoCaoTNTheoNganhNghes")}getDataReport(l,r){return this.PostAuthen("/KetXuatBaoCao",l,{...r,odata:!1})}}const b=new H,Ee=N=>{const[l,r]=a.useState("1"),[u,j]=a.useState({CoSoGDNN_Id:f?null:G,TuNgay:null,DenNgay:null}),i=a.useRef(),p=a.useRef(),v=o=>{l===o?r():r(o)},C=a.useCallback((o,n)=>{j(s=>({...s,[o]:n}))},[]),w=a.useCallback(o=>{var n,s;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))||[]};i!=null&&i.current&&((s=i==null?void 0:i.current)==null||s.reload(m))}catch{}},[]),D=a.useCallback(async o=>{var n;try{const s={...o,NganhNgheDaoTao_Ids:((n=o==null?void 0:o.NganhNgheDaoTao_Ids)==null?void 0:n.map(h=>h==null?void 0:h.Id))||[]},m=await b.getDataReport(s,{responseType:"blob"}),t=URL.createObjectURL(m);let d=document.createElement("a");d.href=t,d.download="BÁO CÁO TỐT NGHIỆP",d.click()}catch(s){k(s.Message||"Thao tác không thành công!")}},[]);return e.jsxDEV(V,{ref:p,onSubmit:w,children:e.jsxDEV(c,{children:[e.jsxDEV(g,{lg:4,children:e.jsxDEV(T,{children:[e.jsxDEV(B,{className:"d-flex justify-content-between",children:e.jsxDEV(c,{className:"w-100 ms-0",children:e.jsxDEV(g,{md:"4",children:"Bộ lọc"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:65,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:64,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:63,columnNumber:13},globalThis),e.jsxDEV(x,{children:[e.jsxDEV(c,{children:e.jsxDEV(g,{md:"12",children:Object.entries(A).map(([o,n],s)=>!n.notMap&&e.jsxDEV(I,{colLabel:"4",colValue:"8",data:n,rules:n.rules,name:o,defaultValue:u&&u[o],onChange:C},s,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:74,columnNumber:25},globalThis))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:70,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:69,columnNumber:15},globalThis),e.jsxDEV(E,{open:l,toggle:v},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:89,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:68,columnNumber:13},globalThis),e.jsxDEV(_,{className:"d-flex justify-content-end",children:[e.jsxDEV(K,{onClick:()=>{D({...p.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/TotNghiep/index.jsx",lineNumber:92,columnNumber:15},globalThis),e.jsxDEV(y,{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/TotNghiep/index.jsx",lineNumber:102,columnNumber:17},globalThis),"Xuất PDF"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:101,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:91,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:62,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:61,columnNumber:9},globalThis),e.jsxDEV(g,{lg:8,children:e.jsxDEV(T,{children:e.jsxDEV(x,{style:{borderRadius:"1rem"},children:e.jsxDEV(S,{ref:i,endpoint:b,...N},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:111,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:110,columnNumber:13},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:109,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:108,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:60,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/TotNghiep/index.jsx",lineNumber:59,columnNumber:5},globalThis)};export{Ee as default};