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.117.72.244
import{x as m,r as i,t as e,D as g,L as x,B as n,O as D}from"./index-BqJsb1v9.js";import{a as h}from"./GenerateBill-CpjboSV7.js";import{p as u}from"./sem-BK69X1ab.js";import{g as l,s as o}from"./datatable-IiDZ7N7J.js";import{S as w}from"./index-C40Qiq2u.js";import{F as E}from"./Table-D4yQCEwA.js";import"./index-CI6UAM1K.js";import"./index-Dn-hkH3e.js";import"./index-flJbNIgz.js";import"./responsiveObserver-C5AO4pli.js";function F(t){const[s,d]=i.useState([]);i.useEffect(()=>{t.getGenerateBillReport()},[]),i.useEffect(()=>{d(t.billDetails)},[t.billDetails]);const c=async a=>{let r=localStorage.getItem("dbname");window.open(D+"/app.php?a=GenerateBillReport&db="+r+"&univcode="+t.userDet.funivcode+"&fdocno="+a.FDOCNO+"&rtype="+a.FREPORTYPE)},p=[{title:"Sl. No.",dataIndex:"fslno",align:"center",width:"3%"},{title:"Doc. No.",dataIndex:"FDOCNO",...l("FDOCNO"),sorter:(a,r)=>o(a,r,"FDOCNO"),sortDirections:["descend","ascend"],align:"center",width:"5%"},{title:e.jsx("div",{style:{textAlign:"center"},children:"Degree Group"}),dataIndex:"FDEGGRP",...l("FDEGGRP"),sorter:(a,r)=>o(a,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:(a,r)=>e.jsx("div",{children:e.jsx(n,{type:"primary",style:{backgroundColor:"green",color:"white"},onClick:()=>c(r),children:"Generate"})}),align:"center",width:"10%"}];return e.jsx(g,{style:{margin:"6rem 10px 10px"},title:e.jsx("h6",{children:"View Bills"}),extra:e.jsx(w,{children:e.jsx(x,{to:"/qpsettings/generatebill",children:e.jsx(n,{type:"primary",danger:!0,children:"Back"})})}),children:e.jsx(E,{bordered:!0,dataSource:s,columns:p,scroll:{y:500,x:1200},size:"small",pagination:u})})}const f=t=>({userDet:t.loginfo.userData,billDetails:t.generatedBillDet}),P=m(f,{getGenerateBillReport:h})(F);export{P as default};
|