0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.148.115.187


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ViewGeneratedBill-Dpcbm-k0.js

import{x as g,r as i,t as e,D as h,L as D,B as l,G as u,O as w}from"./index-DoOhtRM-.js";import{a as f}from"./GenerateBill-B-DUMn0X.js";import{q as E,p as F}from"./sem-DLpF_ddZ.js";import{g as s,s as o}from"./datatable-YrghQg_b.js";import{S as O}from"./index-DAtDV0BY.js";import{R,C as y}from"./row-B8SdGvkB.js";import{F as G}from"./Table-Dzx3CwGy.js";import"./responsiveObserver-BniLz5dQ.js";import"./index-BKpnzzI6.js";import"./index-Gneb6Krm.js";import"./index-Dp7SaHdv.js";function j(a){const[d,c]=i.useState([]),[n,p]=i.useState("All");i.useEffect(()=>{a.getGenerateBillReport(n)},[]),i.useEffect(()=>{c(a.billDetails)},[a.billDetails]);const x=async t=>{let r=localStorage.getItem("dbname");window.open(w+"/app.php?a=GenerateBillReport&db="+r+"&univcode="+a.userDet.funivcode+"&fdocno="+t.FDOCNO+"&rtype="+t.FREPORTYPE)},m=[{title:"Sl. No.",dataIndex:"fslno",align:"center",width:"3%"},{title:"Doc. No.",dataIndex:"FDOCNO",...s("FDOCNO"),sorter:(t,r)=>o(t,r,"FDOCNO"),sortDirections:["descend","ascend"],align:"center",width:"5%"},{title:e.jsx("div",{style:{textAlign:"center"},children:"Degree Group"}),dataIndex:"FDEGGRP",...s("FDEGGRP"),sorter:(t,r)=>o(t,r,"FDEGGRP"),sortDirections:["descend","ascend"],width:"25%"},{title:"Degree",dataIndex:"FDEGREE",align:"center",width:"10%"},{title:"Sem",dataIndex:"FEXAMNO",align:"center",width:"5%"},{title:"Type",dataIndex:"FREPORTYPE",align:"center",width:"5%"},{title:"Teach Code.",dataIndex:"FTEACHCODE",align:"center",width:"5%"},{title:"From Date",dataIndex:"FFROMDATE",align:"center",width:"5%"},{title:"To Date",dataIndex:"FTODATE",align:"center",width:"5%"},{title:"Action",render:(t,r)=>e.jsx("div",{children:e.jsx(l,{type:"primary",style:{backgroundColor:"green",color:"white"},onClick:()=>x(r),children:"Generate"})}),align:"center",width:"10%"}];return e.jsxs(h,{style:{margin:"6rem 10px 10px"},title:e.jsx("h6",{children:"View Bills"}),extra:e.jsx(O,{children:e.jsx(D,{to:"/qpsettings/generatebill",children:e.jsx(l,{type:"primary",danger:!0,children:"Back"})})}),children:[e.jsx(R,{gutter:10,children:e.jsxs(y,{xs:24,sm:24,md:12,lg:6,xl:6,xxl:6,children:[e.jsx("label",{children:"Type"}),e.jsx(u,{style:{marginBottom:"10px",width:"100%"},value:n,options:E,onChange:t=>{p(t),a.getGenerateBillReport(t)}})]})}),e.jsx(G,{bordered:!0,dataSource:d,columns:m,scroll:{y:500,x:1200},size:"small",pagination:F})]})}const C=a=>({userDet:a.loginfo.userData,billDetails:a.generatedBillDet}),q=g(C,{getGenerateBillReport:f})(j);export{q as default};