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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/PrepareQuestionPaper-EDDwM78w.js

import{x as u,r as p,t,D as h,L as r,B as s,J as y,O as g}from"./index-Dyw5MJqL.js";import{g as j,s as P}from"./PrepareQp-tj8mXFmt.js";import{S as o}from"./index-CzmTCSqS.js";import{R as Q}from"./HomeOutlined-C2tOOkr5.js";import{F as I}from"./Table-CG1LaaQy.js";import{T as i}from"./index-fA1MKV2E.js";import{R as c}from"./EditOutlined-Btk_0d8t.js";import{R as q}from"./FilePdfOutlined-B2u34La4.js";import"./responsiveObserver-CbmTM_W9.js";const $=n=>{const[d,l]=p.useState([]);p.useEffect(()=>{n.getPrepareQpDetails()},[]),p.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(i,{title:"Edit",children:t.jsx(s,{size:"medium",style:{background:"green",color:"white",width:"30px"},icon:t.jsx(c,{})})})}):t.jsx(r,{to:"/qpsettings/upload-qp",children:t.jsx(i,{title:"Edit",children:t.jsx(s,{size:"medium",style:{background:"green",color:"white"},icon:t.jsx(c,{})})})}),t.jsx(i,{title:"Preview",children:t.jsx(s,{size:"medium",icon:t.jsx(q,{}),style:{background:"#38f",color:"#fff"},onClick:()=>f(e)})}),e.fpretype==="online"&&t.jsx(i,{title:"Completed?",children:t.jsx(s,{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(s,{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}),z=u(D,{getPrepareQpDetails:j,saveTeachConfirm:P})($);export{z as default};