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 : 18.117.91.116
import{x as h,r as d,t,D as g,L as l,B as s,F as y,J as j,O as w}from"./index-Dyw5MJqL.js";import{g as I,s as M}from"./ModQpDetails-DQ3lWDiM.js";import{S as f}from"./index-CzmTCSqS.js";import{R as Q}from"./HomeOutlined-C2tOOkr5.js";import{F as q}from"./Table-CG1LaaQy.js";import{T as o}from"./index-fA1MKV2E.js";import{R as O}from"./EditOutlined-Btk_0d8t.js";import{R as $}from"./FilePdfOutlined-B2u34La4.js";import"./responsiveObserver-CbmTM_W9.js";const k=n=>{const[p,r]=d.useState([]);d.useEffect(()=>{n.getModQpDetailsOnline()},[]),d.useEffect(()=>{r(n.getModQpOnline)},[n.getModQpOnline]);const c=(a,e)=>{const i=p;i[e.key].fmodremarks=a.target.value,r([...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)},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=>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}/${e.fteachstatus}`},children:t.jsx(o,{title:"Edit",children:t.jsx(s,{size:"medium",icon:t.jsx(O,{}),style:{background:"green",color:"#fff"}})})}),t.jsx(o,{title:"Preview",children:t.jsx(s,{size:"medium",icon:t.jsx($,{}),style:{background:"#38f",color:"#fff"},onClick:()=>m(e)})}),t.jsx(o,{title:"Completed?",children:t.jsx(s,{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(s,{type:"primary",danger:!0,children:[t.jsx(Q,{})," Exit"]})})}),children:t.jsx(q,{dataSource:p,columns:u,scroll:{x:1300}})})},D=n=>({getModQpOnline:n.getModQpOnline,user:n.loginfo.userData}),z=h(D,{getModQpDetailsOnline:I,saveModConfirm:M})(k);export{z as default};
|