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.137.219.221
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/PrepareQuestionPaper-CBzb3cah.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-CYIKbhnb.js";import{g as j,s as P}from"./PrepareQp-C_gnoEXN.js";import{S as o}from"./index-D47VtnHA.js";import{R as Q}from"./HomeOutlined-CvmI8okJ.js";import{F as I}from"./Table-D14CbZ5x.js";import{T as p}from"./index-CBvvA-3u.js";import{R as c}from"./EditOutlined-B6fXEbSO.js";import{R as q}from"./FilePdfOutlined-Brry0cfH.js";import"./index-D-2byGsL.js";import"./index-C_kgUC9x.js";import"./responsiveObserver-DfClcaWx.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};
|