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


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

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