????
Current Path : C:/inetpub/vhost/kiemkegpmb.gdtsolutions.vn/www/assets/ |
Current File : C:/inetpub/vhost/kiemkegpmb.gdtsolutions.vn/www/assets/Index-280f5c4a.js |
import{R as l,r as a,i as c,n as h,j as t,C as p,z as u}from"./index-66f9303d.js";import{B as s}from"./Badge-00399d5f.js";import{D as d}from"./DropdownList-64abc4b5.js";import{D as g}from"./DataTable-2a676718.js";import{a as k}from"./index-bf93e32b.js";import"./Button-ce73291a.js";import"./DataSelect-e9eafc89.js";import"./useTheme-04a7a0e8.js";import"./HTMLElementType-8dab7c38.js";import"./withStyles-88702e75.js";import"./possibleConstructorReturn-91373a2f.js";import"./FontAwesome4-bd80a3fc.js";import"./DialogCustomize-662f79ab.js";import"./capitalize-67f31d18.js";import"./Transition-5591f32d.js";import"./OdataUtils-b209b711.js";import"./Button-4d0f7ac9.js";import"./index-e06de4e9.js";import"./SelectCustom-bc40e0ba.js";import"./Fade-a7ee5075.js";import"./Input-854b2e75.js";import"./Col-f90462c1.js";import"./InputNumber-0eedadf8.js";import"./Required-edc07fa6.js";import"./InputTime-18a21ec5.js";import"./TextArea-52e09ac6.js";import"./Dropdown-10913149.js";import"./Manager-98c93f3e.js";import"./SelectPanelMulti-594cd127.js";import"./TransitionGroup-5d30e17f.js";import"./Collapse-25259f7b.js";import"./Row-b9625288.js";import"./index-8bfd844f.js";import"./Table-0ba33b68.js";import"./Empty-030ec17f.js";const f=[{title:"Mã đơn vị",field:"MaTaiKhoan",type:"string",searchable:!0,defaultSort:"asc"},{title:"Tên đơn vị",field:"TenHienThi",type:"string",dataCheck:!0,searchable:!0},{title:"Loại đơn vị",field:"SYS_DonVi.TenDonVi",type:"string",dataRef:["IDDonVi"],dataCheck:!0,customCol:!0,cellStyle:{width:200},editComponent:e=>t.jsxDEV(d,{url:"DonVis",valueField:"ID",textField:"TenDonVi",value:e.value,onChange:o=>o?e.onChange(o):e.onChange(null)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/System/TaiKhoanLGSP/Index.jsx",lineNumber:34,columnNumber:7},globalThis)},{title:"Tình trạng",field:"TinhTrangHoatDong",type:"string",render:e=>e.TinhTrangHoatDong?t.jsxDEV(s,{color:"success",children:"Đã kích hoạt"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/System/TaiKhoanLGSP/Index.jsx",lineNumber:49,columnNumber:16},globalThis):t.jsxDEV(s,{color:"danger",children:"Chưa kích hoạt"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/System/TaiKhoanLGSP/Index.jsx",lineNumber:51,columnNumber:16},globalThis)}];function Z(){const e=l.createRef(),o=a.useCallback(()=>{e.current&&e.current.onQueryChange()},[e]),m=a.useCallback((r,i)=>{c(`QuanLyTaiKhoan/DuyetLGSPUser?MaTaiKhoan=${r}&IsAccept=${i}`,"GET",null,{odata:!1}).then(n=>{h("Kích hoạt thành công"),o()})},[o]);return t.jsxDEV(k,{children:t.jsxDEV(g,{title:"Danh sách tài khoản LGSP",tableRef:e,url:"TaiKhoans",where:"IsLGSP eq true",columns:f,onActions:[{icon:"check",tooltip:"Kích hoạt",onClick:(r,i)=>{i.TinhTrangHoatDong?p("Tài khoản này đã được kích hoạt"):u("Bạn có muốn kích hoạt").then(n=>{n&&n.isConfirmed&&m(i.MaTaiKhoan,!0)})}}]},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/System/TaiKhoanLGSP/Index.jsx",lineNumber:77,columnNumber:7},this)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/kiemkegpmb.gdtsolutions.vn/src/views/System/TaiKhoanLGSP/Index.jsx",lineNumber:76,columnNumber:5},this)}export{Z as default};