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 : 18.191.120.103


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ViewPrepareQp-9V-E7Snq.js

import{x,r,t as e,D as f,L as s,B as i,J as m}from"./index-D4tY2iBR.js";import"./quill.snow-Da_C3bQe.js";import{a as u}from"./styles-BqTDn2X3.js";import{S as p}from"./index-CmzrOVIl.js";import{R as g}from"./HomeOutlined-CMFgccJg.js";import{F as j}from"./Table-BDJUlBpk.js";import{T as n}from"./index-Dx9mkNC7.js";import{R as l}from"./EditOutlined-Ch_ZiRSp.js";import{R as h}from"./FilePdfOutlined-DhWIotrr.js";import"./index--tKxzihq.js";import"./index-CoG_RFMp.js";import"./responsiveObserver-ByjJDers.js";const y=a=>{const[o,c]=r.useState([]);r.useEffect(()=>{a.getViewPrepareQpDetails(a.user.fregno)},[]),r.useEffect(()=>{c(a.viewPrepareQpDetails)},[a.viewPrepareQpDetails]);const d=[{title:"Sl. No.",dataIndex:"fslno",align:"center"},{title:"QP Code",dataIndex:"fqpcode",align:"center"},{title:"Subject Name",dataIndex:"fsubname"},{title:"Qp. No.",dataIndex:"fset",align:"center"},{title:"Max. Qn.",dataIndex:"totcnt",align:"center"},{title:"Qn. Prepared",dataIndex:"qpcnt",align:"center"},{title:"Type",dataIndex:"ftype",align:"center"},{title:"Pre.Type",dataIndex:"fpretype",align:"center"},{title:"Action",render:(w,t)=>e.jsxs(p,{children:[t.fpretype==="online"?e.jsx(s,{to:{pathname:`/qpsettings/prepare-qn-paper/${t.fqpcode}/${t.fyear}/${t.fexamtype}/${t.fteachcode}/${t.fset}/${t.ftempcode}/${t.ftype}/${t.fteachstatus}`},children:e.jsx(n,{title:"Edit",children:e.jsx(i,{size:"medium",style:{background:"green",color:"white",width:"30px"},icon:e.jsx(l,{})})})}):e.jsx(s,{to:"/qpsettings/upload-qp",children:e.jsx(n,{title:"Edit",children:e.jsx(i,{size:"medium",style:{background:"green",color:"white"},icon:e.jsx(l,{})})})}),e.jsx(n,{title:"Preview",children:e.jsx(i,{size:"medium",icon:e.jsx(h,{}),style:{background:"#38f",color:"#fff"},onClick:()=>getReport(t)})}),t.fpretype==="online"&&e.jsx(n,{title:"Completed?",children:e.jsx(i,{size:"medium",type:"primary",icon:e.jsx(m,{}),hidden:t.fteachstatus=="T"&&!0,onClick:()=>saveTeachConfirm(t)})})]}),align:"center"}];return e.jsx(f,{style:{margin:"6rem 10px 10px"},title:e.jsx("h6",{children:"Prepare Question Paper"}),extra:e.jsx(p,{children:e.jsx(s,{to:"/",children:e.jsxs(i,{type:"primary",danger:!0,children:[e.jsx(g,{})," Exit"]})})}),children:e.jsx(j,{dataSource:o,columns:d,scroll:{x:1200},size:"small",pagination:!1})})},P=a=>({user:a.loginfo.userData,viewPrepareQpDetails:a.getViewPrepareQpDetails}),v=x(P,{getViewPrepareQpDetails:u})(y);export{v as default};