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 : 18.119.255.170
import{x as g,r as i,t as e,D as h,L as D,B as l,G as u,N as w}from"./index-CoLgoWu-.js";import{a as f}from"./GenerateBill-COZ82h2_.js";import{q as E,p as F}from"./sem-DLpF_ddZ.js";import{g as s,s as o}from"./datatable-BiUzMtxi.js";import{S as R}from"./index-WY2ZM78R.js";import{R as y,C as G}from"./row-s2Fr6JP2.js";import{F as O}from"./Table-BgOjaa3g.js";import"./responsiveObserver-BUjGGPy3.js";import"./index-ALOEjMEx.js";import"./index-DyGqXTta.js";import"./index-Bs6KXOyO.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(R,{children:e.jsx(D,{to:"/qpsettings/generatebill",children:e.jsx(l,{type:"primary",danger:!0,children:"Back"})})}),children:[e.jsx(y,{gutter:10,children:e.jsxs(G,{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(O,{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};
|