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


Current Path : /proc/thread-self/root/var/www/qpms/assets/
Upload File :
Current File : //proc/thread-self/root/var/www/qpms/assets/PrepareQuestionPaper-DRYP_9de.js

import{x as u,r as s,t,D as h,L as r,B as i,J as y,O as g}from"./index-BXGyQmrS.js";import{g as j,s as P}from"./PrepareQp-jwOEik7E.js";import{S as o}from"./index-Dmdyjymp.js";import{R as Q}from"./HomeOutlined-DXLVvpRw.js";import{F as I}from"./Table-CVDZw6UV.js";import{T as p}from"./index-BLFlp97X.js";import{R as c}from"./EditOutlined-DVhdoJf9.js";import{R as q}from"./FilePdfOutlined-b1LLwQaT.js";import"./index-BjgvK_nI.js";import"./index-DA_qcuNc.js";import"./responsiveObserver-BnSpyoMt.js";const $=n=>{const[d,l]=s.useState([]);s.useEffect(()=>{n.getPrepareQpDetails()},[]),s.useEffect(()=>{l(n.prepareQpDetails)},[n.prepareQpDetails]);const f=a=>{let e=localStorage.getItem("dbname");window.open(g+"/app.php?a=getOmrQpReport&univcode="+n.user.funivcode+"&db="+e+"&qpcode="+a.fqpcode+"&year="+a.fyear+"&mode="+a.fexamtype+"&teachcode="+a.fteachcode+"&noqp="+a.fset+"&type="+a.ftype)},m=async a=>{const e=new FormData;e.append("qpcode",a.fqpcode),e.append("year",a.fyear),e.append("mode",a.fexamtype),e.append("teachcode",a.fteachcode),e.append("set",a.fset),e.append("ftype",a.ftype),e.append("modetype",n.user.fusertype),e.append("userid",n.user.fregno),await n.saveTeachConfirm(e,n.getPrepareQpDetails)},x=[{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:(a,e)=>t.jsxs(o,{children:[e.fpretype==="online"?t.jsx(r,{to:{pathname:`/qpsettings/prepare-thqp/${e.fqpcode}/${e.fyear}/${e.fexamtype}/${e.fteachcode}/${e.fset}/${e.ftempcode}/${e.ftype}/${e.fteachstatus}`},children:t.jsx(p,{title:"Edit",children:t.jsx(i,{size:"medium",style:{background:"green",color:"white",width:"30px"},icon:t.jsx(c,{})})})}):t.jsx(r,{to:"/qpsettings/upload-qp",children:t.jsx(p,{title:"Edit",children:t.jsx(i,{size:"medium",style:{background:"green",color:"white"},icon:t.jsx(c,{})})})}),t.jsx(p,{title:"Preview",children:t.jsx(i,{size:"medium",icon:t.jsx(q,{}),style:{background:"#38f",color:"#fff"},onClick:()=>f(e)})}),e.fpretype==="online"&&t.jsx(p,{title:"Completed?",children:t.jsx(i,{size:"medium",type:"primary",icon:t.jsx(y,{}),hidden:e.fteachstatus=="T"&&!0,onClick:()=>m(e)})})]}),align:"center"}];return t.jsx(h,{style:{margin:"6rem 10px 10px"},title:t.jsx("h6",{children:"Prepare Question Paper"}),extra:t.jsx(o,{children:t.jsx(r,{to:"/",children:t.jsxs(i,{type:"primary",danger:!0,children:[t.jsx(Q,{})," Exit"]})})}),children:t.jsx(I,{dataSource:d,columns:x,scroll:{x:1200},size:"small",pagination:!1})})},D=n=>({user:n.loginfo.userData,prepareQpDetails:n.prepareQpDetails}),N=u(D,{getPrepareQpDetails:j,saveTeachConfirm:P})($);export{N as default};