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


Current Path : /proc/thread-self/root/var/www/qpms/assets/
Upload File :
Current File : //proc/thread-self/root/var/www/qpms/assets/ModQpDetailsOnline-CNzRbFEx.js

import{x as g,r as s,t,D as h,L as l,B as o,F as y,J as j,O as w}from"./index-OoIVMx8J.js";import{g as I,s as M}from"./ModQpDetails-dkqjh0M4.js";import{p as Q}from"./sem-BK69X1ab.js";import{S as f}from"./index-D8g-eO2b.js";import{R as O}from"./HomeOutlined-CR3UvdpS.js";import{F as q}from"./Table-CfMy1bM_.js";import{T as d}from"./index-DB6LayHl.js";import{R as $}from"./EditOutlined-DJbUtN1u.js";import{R as k}from"./FilePdfOutlined-_B74YBf2.js";import"./index-BR3f40yj.js";import"./index-CireV0Cr.js";import"./responsiveObserver-VTWWu4Z-.js";const D=n=>{const[p,r]=s.useState([]);s.useEffect(()=>{n.getModQpDetailsOnline()},[]),s.useEffect(()=>{r(n.getModQpOnline)},[n.getModQpOnline]);const m=(a,e)=>{const i=p;i[e.key].fmodremarks=a.target.value,r([...i])},c=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)},u=[{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:"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=>m(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}/${e.fteachstatus}`},children:t.jsx(d,{title:"Edit",children:t.jsx(o,{size:"medium",icon:t.jsx($,{}),style:{background:"green",color:"#fff"}})})}),t.jsx(d,{title:"Preview",children:t.jsx(o,{size:"medium",icon:t.jsx(k,{}),style:{background:"#38f",color:"#fff"},onClick:()=>c(e)})}),t.jsx(d,{title:"Completed?",children:t.jsx(o,{size:"medium",type:"primary",icon:t.jsx(j,{}),hidden:e.fmodstatus=="T"&&!0,onClick:()=>x(e)})})]}),width:"20%",align:"center"}];return t.jsx(h,{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(o,{type:"primary",danger:!0,children:[t.jsx(O,{})," Exit"]})})}),children:t.jsx(q,{dataSource:p,columns:u,scroll:{x:1300},pagination:Q})})},R=n=>({getModQpOnline:n.getModQpOnline,user:n.loginfo.userData}),N=g(R,{getModQpDetailsOnline:I,saveModConfirm:M})(D);export{N as default};