????
Current Path : C:/inetpub/vhost/quypctt.nextform.vn/www/assets/ |
Current File : C:/inetpub/vhost/quypctt.nextform.vn/www/assets/ThongBao-498d8fb3.js |
import{r as i,T,j as e,R as f}from"./index-3ac6b886.js";import{R as v}from"./Row-ef702d16.js";import{C as s}from"./TextArea-5c5d2643.js";import{M as x}from"./Modal-834c96f4.js";import{I as C}from"./InputNumber-e0e8281b.js";import"./InputTime-6c25e67a.js";import{D as c}from"./DropdownList-92e339e1.js";import{D as H}from"./DataTable-4f7de56a.js";import{H as o}from"./const-0478bc07.js";import{c as j,D as $}from"./Notify-52ad6082.js";import"./utils-1da25c48.js";import"./Fade-c1d8e31e.js";import"./Transition-41b94a89.js";import"./FontAwesome4-4d1c8e97.js";import"./Button-d32d698a.js";import"./Input-a404c875.js";import"./useTheme-cc71593c.js";import"./withStyles-be05542d.js";import"./possibleConstructorReturn-b2959138.js";import"./classCallCheck-22a738c0.js";import"./DataSelect-21292454.js";import"./DialogCustomize-f58e33cd.js";import"./capitalize-2c2e3657.js";import"./OdataUtils-69f581ff.js";import"./Button-9ef33eb6.js";import"./function-c7c2f09a.js";import"./Required-a585e744.js";import"./SelectCustom-a3812854.js";import"./Dropdown-fd6014de.js";import"./SelectPanelMulti-30b66e05.js";import"./TransitionGroup-a6d13137.js";import"./Collapse-9244e6b2.js";import"./Badge-69f10678.js";import"./Popper-c3a92014.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./Empty-c1579b18.js";/* empty css */const p=f.createRef(),u=()=>p.current&&p.current.onQueryChange();function uo(q){const[t,D]=i.useState(null),[r,d]=i.useState(null),[l,g]=i.useState(null),[h,m]=i.useState(null);let n=[];return n.push(`(DonViGui_Id eq '${T.IDDonVi}' and (HanhDong eq '${o.TinNhanTuHeThong}' or HanhDong eq '${o.DaKySo}' or HanhDong eq '${o.HuyKySo}' or HanhDong eq '${o.ChinhSuaBaoCao}')) or (DonViNhan_Id eq '${T.IDDonVi}' and (HanhDong eq '${o.GuiBaoCao}' or HanhDong eq '${o.TinNhanTuDonVi}' or HanhDong eq '${o.DuyetBaoCao}' or HanhDong eq '${o.TuChoiBaoCao}' or HanhDong eq '${o.DaTrinhKy}' or HanhDong eq '${o.TiepNhanTrinhKy}' or HanhDong eq '${o.TuChoiTrinhKy}'))`),t&&n.push(`substringof('${t}',NoiDung)`),r==="true"?n.push("DaXemThongBao eq true"):r==="false"&&n.push("DaXemThongBao ne true"),l&&n.push(`HanhDong eq '${l}'`),e.jsxs("div",{className:"bg-white rounded p-3",children:[e.jsx(H,{tableRef:p,title:e.jsx("b",{children:"Danh sách thông báo"}),url:"SYS_ThongBao?$expand=SYS_DonVi,SYS_DonVi1",where:n.join(" and "),columns:j,selectType:"withColumns",SearchAdvanced:b=>e.jsxs(v,{children:[e.jsx(s,{md:"3",children:e.jsx(C,{placeholder:"Lọc theo nội dung...",defaultValue:t,onKeyPress:a=>{a.charCode===13&&(u(),D(a.target.value))}})}),e.jsx(s,{md:"3",children:e.jsx(c,{placeholder:"Chọn trạng thái đã xem...",options:[{label:"Tất cả",value:null},{label:"Chưa xem",value:"false"},{label:"Đã xem",value:"true"}],valueField:"value",textField:"label",value:r,onChange:a=>{d(a),u()}})}),e.jsx(s,{md:"3",children:e.jsx(c,{placeholder:"Chọn loại tin nhắn...",options:[{label:"Tất cả",value:null},{label:"Gửi báo cáo",value:o.GuiBaoCao},{label:"Trình ký",value:o.DaTrinhKy},{label:"Tiếp nhận trình ký",value:o.TiepNhanTrinhKy},{label:"Từ chối trình ký",value:o.TuChoiTrinhKy},{label:"Ký số báo cáo",value:o.DaKySo},{label:"Tiếp nhận báo cáo",value:o.DuyetBaoCao},{label:"Từ chối báo cáo",value:o.TuChoiBaoCao},{label:"Tin nhắn từ đơn vị",value:o.TinNhanTuDonVi},{label:"Tin nhắn từ hệ thống",value:o.TinNhanTuHeThong}],valueField:"value",textField:"label",value:l,onChange:a=>{g(a),u()}})})]}),onRowClick:(b,a)=>m(a)}),h&&e.jsx(x,{size:"lg",isOpen:h,toggle:()=>m(null),children:e.jsx("div",{className:"p-4",children:e.jsx($,{detail:!0,data:h})})})]})}export{uo as default};