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


Current Path : /proc/thread-self/root/var/www/qpms/assets/
Upload File :
Current File : //proc/thread-self/root/var/www/qpms/assets/PrepareQuestionPaper-B133P11v.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-BnV6LRk1.js";import{g as j,s as P}from"./PrepareQp-CMWy2J2w.js";import{S as o}from"./index-Bm30U5Iv.js";import{R as Q}from"./HomeOutlined-BaCbmQl_.js";import{F as I}from"./Table-Ba9ECeid.js";import{T as p}from"./index-BoWG-kFi.js";import{R as c}from"./EditOutlined-WcZL1BCH.js";import{R as q}from"./FilePdfOutlined-Bgn2I4e6.js";import"./index-ZKM9bSaz.js";import"./index-DDJhgKXs.js";import"./responsiveObserver-BFnokbxg.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};