????

Your IP : 216.73.216.64


Current Path : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/
Upload File :
Current File : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/index-cfdbe971.js

import{r as t,C as w,j as e}from"./index-fa055cb8.js";import{R as g,C as d,d as f,h as y,e as v,O as B,f as _}from"./reactstrap.modern-274e1102.js";import"./QLLD_DM_TinhTrangViecLamEndpoint-619b3d52.js";import{A as E}from"./AddressComponent-d072bcdf.js";import{B as I}from"./Button-b6c26fff.js";import{B as R}from"./ButtonLoad-5b8d7df7.js";import"./ButtonClose-01990b88.js";import{F as S,C as H,I as F}from"./Form-44494cfc.js";import{F as M}from"./FontAwesome4-64371a0f.js";import{S as G}from"./Service-b8ed62b2.js";import"./Transition-c4233574.js";import"./FormControl-dda7d30a.js";import"./Required-11df292c.js";import"./InputNumber-092cea71.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"./TextHuyenPhuongXa-91b9e817.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"./DataTable-fad8b46b.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";const x=new Date().getFullYear(),q=Array.from({length:40},(l,i)=>i).reduce((l,i)=>(l.push({Id:x-i,Name:x-i}),l),[]),O={IsHocNghe:{hidden_label:!0,notMap:!0,field_name:"IsHocNghe",title:"Nhu cầu",type:"data-select",rules:{required:"Vui lòng chọn"},dataSelect:{options:[{value:0,label:"Nhu cầu học nghề"},{value:1,label:"Nhu cầu chuyển đổi nghề"}],value_field:"value",text_field:"label",placeholder:"Chọn loại nhu cầu"}},Nam:{field_name:"Nam",title:"Năm",type:"data-select",dataSelect:{options:q,value_field:"Id",text_field:"Name",placeholder:"Chọn năm"},rules:{required:"Vui lòng nhập"}},IsTrongTinh:{field_name:"IsTrongTinh",title:"Quy mô",type:"data-select",rules:{required:"Vui lòng chọn"},dataSelect:{options:[{value:1,label:"Trong tỉnh"},{value:2,label:"Ngoài tỉnh"},{value:3,label:"Tất cả"}],value_field:"value",text_field:"label",placeholder:"Chọn..."}},TinhTrangThamGiaHDKT_Id:{field_name:"TinhTrangThamGiaHDKT_Id",title:"Tình trạng việc làm",type:"data-select",dataSelect:{url:"QLLD_DM_TinhTrangViecLam",value_field:"Id",text_field:"Name",placeholder:"Chọn..."}},NganhNgheDaoTao_Ids:{field_name:"NganhNgheDaoTao_Ids",title:"Ngành nghề",type:"data-select",required:!0,dataSelect:{isMulti:!0,url:"QLLD_DM_NganhNgheDaoTao",value_field:"Id",text_field:"Name",placeholder:"Chọn..."}}},Q=[{title:"Họ và tên",field:"HoVaTen",type:"string"},{title:"Ngày sinh",field:"NgayThangNamSinh",type:"date"},{title:"Giới tính",field:"GioiTinh",type:"string"},{title:"CMND/CCCD",field:"CCCD",type:"string"},{title:"SĐT",field:"SDT",type:"string"},{title:"Dân tộc",field:"DanToc",type:"string"},{title:"Nơi ở hiện tại",field:"NoiOHienTai",type:"string"},{title:"Đối tượng ưu tiên",field:"DoiTuongUuTien",type:"string"},{title:"Trình độ ",field:"TrinhDoHV",type:"string"},{title:"Trình độ CMKT",field:"TrinhDoCMKT",type:"string"},{title:"Nhu cầu chuyển đổi",field:"NhuCauChuyenDoi",type:"string"},{title:"Tên nghề nhu cầu",field:"TenNghe",type:"string"},{title:"Trình độ đào tạo",field:"TrinhDoDaoTao",type:"string"}];class A extends G{constructor(){super("ThongKeLLLDTheoKhuVucs")}getDataReport(i,c){return this.PostAuthen("/KetXuatBaoCao",i,{...c,odata:!1})}}const D=new A;function Be(l){const[i,c]=t.useState("1"),[p,L]=t.useState({Report:0,Nam:new Date().getFullYear(),NganhNgheDaoTao_Ids:[],TinhTrangThamGiaHDKT_Id:1,IsTrongTinh:1}),[j,X]=t.useState(Q),s=t.useRef(),u=t.useRef(),N=t.useRef(),C=n=>{i===n?c():c(n)},b=t.useCallback((n,o)=>{L(a=>({...a,[n]:o}))},[]),h=t.useCallback(n=>{var r;const o=(u==null?void 0:u.current)&&((r=u==null?void 0:u.current)==null?void 0:r.getData());return{...n,...o,IsTrongTinh:(k=>{let m=null;switch(k){case 1:m=!0;break;case 2:m=!1;break;default:m=null}return m})(n.IsTrongTinh)}},[]),K=t.useCallback(n=>{var o;try{const a=h(n);s!=null&&s.current&&((o=s==null?void 0:s.current)==null||o.reload(a))}catch{}},[h]),V=t.useCallback(async n=>{try{const o=h(n),a=await D.getDataReport(o,{responseType:"blob"}),T=URL.createObjectURL(a);let r=document.createElement("a");r.href=T,r.download="Báo cáo nhu cầu theo khu vực",r.click()}catch(o){w(o.Message||"Thao tác không thành công!")}},[h]);return e.jsxDEV(S,{ref:N,onSubmit:K,children:e.jsxDEV(g,{children:[e.jsxDEV(d,{lg:4,children:e.jsxDEV(f,{children:[e.jsxDEV(y,{className:"d-flex justify-content-between",children:e.jsxDEV(g,{className:"w-100 ms-0",children:e.jsxDEV(d,{md:"4",children:"Bộ lọc"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:100,columnNumber:17},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:99,columnNumber:15},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:98,columnNumber:13},this),e.jsxDEV(v,{children:[e.jsxDEV(g,{children:e.jsxDEV(d,{md:"12",children:[e.jsxDEV(E,{ref:u},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:116,columnNumber:19},this),Object.entries(O).map(([n,o],a)=>!o.notMap&&e.jsxDEV(H,{colLabel:"4",colValue:"8",data:o,rules:o.rules,name:n,defaultValue:p&&p[n],onChange:b},a,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:120,columnNumber:25},this))]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:115,columnNumber:17},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:114,columnNumber:15},this),e.jsxDEV(B,{open:i,toggle:C},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:135,columnNumber:15},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:113,columnNumber:13},this),e.jsxDEV(_,{className:"d-flex justify-content-end",children:[e.jsxDEV(R,{onClick:()=>{V({...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/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:138,columnNumber:15},this),e.jsxDEV(I,{type:"submit",color:"danger",children:[e.jsxDEV(M,{style:{marginRight:"0.5rem"},fa:"file-pdf-o"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:148,columnNumber:17},this),"Xuất PDF"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:147,columnNumber:15},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:137,columnNumber:13},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:97,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:96,columnNumber:9},this),e.jsxDEV(d,{lg:8,children:e.jsxDEV(f,{children:e.jsxDEV(v,{style:{borderRadius:"1rem"},children:e.jsxDEV(F,{title:"Danh sách có việc làm theo khu vực",ref:s,url:"ThongKeLLLDTheoKhuVucs/KetXuatBaoCao",endpoint:D,columns:j,...l},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:157,columnNumber:15},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:156,columnNumber:13},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:155,columnNumber:11},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:154,columnNumber:9},this)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:95,columnNumber:7},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/BaoCaoThongKe/LucLuongLaoDongTheoKhuVuc/index.jsx",lineNumber:94,columnNumber:5},this)}export{Be as default};