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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ViewPrepareQp-8EypCn3q.js

import{x,r as s,t as e,D as f,L as r,B as i,J as m}from"./index-DXwwbSQ-.js";import{a as u}from"./PrepareQuestionPaper-DzRZKwpO.js";import{S as l}from"./index-C9zck7tp.js";import{R as g}from"./HomeOutlined-DJi-fNI3.js";import{F as j}from"./Table-DLoblIqA.js";import{T as n}from"./index-Cp4ILwZE.js";import{R as p}from"./EditOutlined-GXaCn7Rg.js";import{R as h}from"./FilePdfOutlined-OrSKZSpx.js";import"./index-BVb88WDa.js";import"./index-CI4cx5Fn.js";import"./responsiveObserver-BwBvPd7-.js";const y=a=>{const[o,c]=s.useState([]);s.useEffect(()=>{a.getViewPrepareQpDetails(a.user.fregno)},[]),s.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(l,{children:[t.fpretype==="online"?e.jsx(r,{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(p,{})})})}):e.jsx(r,{to:"/qpsettings/upload-qp",children:e.jsx(n,{title:"Edit",children:e.jsx(i,{size:"medium",style:{background:"green",color:"white"},icon:e.jsx(p,{})})})}),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(l,{children:e.jsx(r,{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}),C=x(P,{getViewPrepareQpDetails:u})(y);export{C as default};