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.43


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

import{x as m,r as i,t as e,D as g,L as x,B as n,O as D}from"./index-CvUjCcnC.js";import{a as h}from"./GenerateBill-PbkbjmfT.js";import{p as u}from"./sem-BK69X1ab.js";import{g as l,s as o}from"./datatable-Cq5oUA82.js";import{S as w}from"./index-cBpPe4Bv.js";import{F as E}from"./Table-Bjn0CUkG.js";import"./index-Bcns0PqO.js";import"./index-B2bo5HG1.js";import"./index-Ox-82G5m.js";import"./responsiveObserver-DEIyf_nc.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};