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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ModQpDetailsOnline-DDzkhTyt.js

import{x as u,r as s,t,D as g,L as l,B as d,F as y,J as j,O as w}from"./index-C8M3lyNu.js";import{g as I,s as M}from"./ModQpDetails-Bt_VhI_2.js";import{S as f}from"./index-Bhb34QNg.js";import{R as Q}from"./HomeOutlined-C5ZSuxRe.js";import{F as q}from"./Table-CCr-bhsx.js";import{T as o}from"./index-C1EEZ13m.js";import{R as O}from"./EditOutlined-3duq5Qtr.js";import{R as k}from"./FilePdfOutlined-DZ7XPEq8.js";import"./responsiveObserver-iG098kB7.js";const D=n=>{const[r,p]=s.useState([]);s.useEffect(()=>{n.getModQpDetailsOnline()},[]),s.useEffect(()=>{p(n.getModQpOnline)},[n.getModQpOnline]);const c=(a,e)=>{const i=r;i[e.key].fmodremarks=a.target.value,p([...i])},m=a=>{window.open(w+"/app.php?a=getOmrQpReport&db="+localStorage.getItem("dbname")+"&univcode="+n.user.funivcode+"&qpcode="+a.fqpcode+"&year="+a.fyear+"&mode="+a.fexamtype+"&teachcode="+a.fteachcode+"&noqp="+a.fset+"&type="+a.ftype+"&teachtype="+n.user.fusertype)},x=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.fnoqp),e.append("modetype",n.user.fusertype),e.append("userid",n.user.fregno),e.append("remarks",a.fmodremarks),await n.saveModConfirm(e,n.getModQpDetailsOnline)},h=[{title:"Sl. No",dataIndex:"fslno",align:"center",width:"5%"},{title:"QP Code",dataIndex:"fqpcode",align:"center",width:"10%"},{title:"Subject Name",dataIndex:"fsubname",width:"20%"},{title:"Year / Mode",render:(a,e)=>t.jsx("span",{children:e.fyear+"/"+e.fexamtype}),width:"5%",align:"center"},{title:"Set",dataIndex:"fset",width:"5%",align:"center"},{title:"Max. Qn.",dataIndex:"totcnt",width:"5%",align:"center"},{title:"Qn. Prepared",dataIndex:"qpcnt",width:"5%",align:"center"},{title:"Type",dataIndex:"ftype",width:"10%",align:"center"},{title:"Pre.Type",dataIndex:"fpretype",width:"5%",align:"center"},{title:"Comp. Date",dataIndex:"fmodqpdate",width:"10%",align:"center"},{title:"Remarks",render:(a,e)=>t.jsx(y,{value:e.fmodremarks,onChange:i=>c(i,e)}),width:"20%",align:"center"},{title:"Action",render:(a,e)=>t.jsxs(f,{children:[t.jsx(l,{to:{pathname:`/qpsettings/prepare-thqp/${e.fqpcode}/${e.fyear}/${e.fexamtype}/${e.fteachcode}/${e.fset}/${e.ftempcode}/${e.ftype}`},children:t.jsx(o,{title:"Edit",children:t.jsx(d,{size:"medium",icon:t.jsx(O,{}),style:{background:"green",color:"#fff"}})})}),t.jsx(o,{title:"Preview",children:t.jsx(d,{size:"medium",icon:t.jsx(k,{}),style:{background:"#38f",color:"#fff"},onClick:()=>m(e)})}),t.jsx(o,{title:"Completed?",children:t.jsx(d,{size:"medium",type:"primary",icon:t.jsx(j,{}),hidden:e.fmodstatus=="T"&&!0,onClick:()=>x(e)})})]}),width:"20%",align:"center"}];return t.jsx(g,{style:{margin:"6rem 10px 10px"},title:t.jsx("h6",{children:"Moderator QP Details(Online)"}),extra:t.jsx(f,{children:t.jsx(l,{to:"/",children:t.jsxs(d,{type:"primary",danger:!0,children:[t.jsx(Q,{})," Exit"]})})}),children:t.jsx(q,{dataSource:r,columns:h,scroll:{x:1300}})})},R=n=>({getModQpOnline:n.getModQpOnline,user:n.loginfo.userData}),z=u(R,{getModQpDetailsOnline:I,saveModConfirm:M})(D);export{z as default};