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.95.167
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/ViewPrepareQp-R6kXuigr.js |
import{x,r as s,t as e,D as u,L as o,B as n,J as g,O as h}from"./index-DNLfgd66.js";import{a as j}from"./PrepareQuestionPaper-Ck0OHzrj.js";import{S as p}from"./index-Cegtx7Nr.js";import{R as y}from"./HomeOutlined-DwpzT65z.js";import{F as P}from"./Table-BSOQ4BWe.js";import{T as r}from"./index-Dpalldti.js";import{R as l}from"./EditOutlined-sUuZ2e0a.js";import{R as w}from"./FilePdfOutlined-BceqzOXV.js";import"./index-p2sVlXNE.js";import"./index-CdwpRzQe.js";import"./responsiveObserver-DLOaSOjc.js";const I=a=>{const[c,d]=s.useState([]);s.useEffect(()=>{a.getViewPrepareQpDetails(a.user.fregno)},[]),s.useEffect(()=>{d(a.viewPrepareQpDetails)},[a.viewPrepareQpDetails]);const f=i=>{let t=localStorage.getItem("dbname");window.open(h+"/app.php?a=getOmrQpReport&univcode="+a.user.funivcode+"&db="+t+"&qpcode="+i.fqpcode+"&year="+i.fyear+"&mode="+i.fexamtype+"&teachcode="+i.fteachcode+"&noqp="+i.fset+"&type="+i.ftype)},m=[{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:(i,t)=>e.jsxs(p,{children:[t.fpretype==="online"?e.jsx(o,{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(r,{title:"Edit",children:e.jsx(n,{size:"medium",style:{background:"green",color:"white",width:"30px"},icon:e.jsx(l,{})})})}):e.jsx(o,{to:"/qpsettings/upload-qp",children:e.jsx(r,{title:"Edit",children:e.jsx(n,{size:"medium",style:{background:"green",color:"white"},icon:e.jsx(l,{})})})}),e.jsx(r,{title:"Preview",children:e.jsx(n,{size:"medium",icon:e.jsx(w,{}),style:{background:"#38f",color:"#fff"},onClick:()=>f(t)})}),t.fpretype==="online"&&e.jsx(r,{title:"Completed?",children:e.jsx(n,{size:"medium",type:"primary",icon:e.jsx(g,{}),hidden:t.fteachstatus=="T"&&!0,onClick:()=>saveTeachConfirm(t)})})]}),align:"center"}];return e.jsx(u,{style:{margin:"6rem 10px 10px"},title:e.jsx("h6",{children:"Prepare Question Paper"}),extra:e.jsx(p,{children:e.jsx(o,{to:"/",children:e.jsxs(n,{type:"primary",danger:!0,children:[e.jsx(y,{})," Exit"]})})}),children:e.jsx(P,{dataSource:c,columns:m,scroll:{x:1200},size:"small",pagination:!1})})},Q=a=>({user:a.loginfo.userData,viewPrepareQpDetails:a.getViewPrepareQpDetails}),z=x(Q,{getViewPrepareQpDetails:j})(I);export{z as default};
|