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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ViewGeneratedBill-ZgrRDcA9.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-CXvb2HGZ.js";import{a as h}from"./GenerateBill-DTPNvEdA.js";import{p as w}from"./sem-BK69X1ab.js";import{g as l,s as o}from"./datatable-V9_JACeO.js";import{S as E}from"./index-DHyLT5wt.js";import{F}from"./Table-CNMkxNHM.js";import"./index-DakHim_F.js";import"./index-ZzgtcyQj.js";import"./index-DmW51NFT.js";import"./responsiveObserver-DVDafNTv.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};