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.133.120.64
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[756],{2987:(e,t,s)=>{s.d(t,{W:()=>r,y:()=>d});var a=s(1600),o=s(4692),l=s(9104),c=s(4387),n=s(2496);const d=e=>({filterDropdown:t=>{let{setSelectedKeys:s,selectedKeys:d,confirm:r,clearFilters:i,close:u}=t;return(0,n.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,n.jsx)(a.c,{autoFocus:!0,placeholder:"Search ".concat(e),value:d,onChange:e=>s(e.target.value?[e.target.value]:[]),onPressEnter:()=>{r()},style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(o.c,{children:[(0,n.jsx)(l.cp,{type:"primary",onClick:()=>r(),icon:(0,n.jsx)(c.c,{}),size:"small",style:{width:90},children:"Search"}),(0,n.jsx)(l.cp,{onClick:()=>{i(),r()},size:"small",style:{width:90},children:"Reset"})]})]})},filterIcon:e=>(0,n.jsx)(c.c,{style:{color:e?"#1677ff":void 0}}),onFilter:(t,s)=>{s[e].toString().toLowerCase().includes(t.toString().toLowerCase())}}),r=(e,t)=>t.value.toString().toLowerCase().indexOf(e.toLowerCase())>=0||t.label.toString().toLowerCase().indexOf(e.toLowerCase())>=0},6756:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var a=s(9060),o=s(8372),l=s(3392);const c=e=>({type:"LOADING",loading:e});var n=s(8836),d=s(4692),r=s(9104),i=s(3752),u=s(9196),h=s(3516),p=s(5866),m=s(624),S=s(1224),y=s(2987),x=s(2496);const g=()=>{const e=(0,m.OY)(),t=(0,m.w1)((e=>e.AuthReducer.userData)),s=(0,m.w1)((e=>e.DegreeReducer.degreeList)),g=(0,m.w1)((e=>e.SubjectReducer.subjectList)),b=[{value:"All",label:"All"},...(0,m.w1)((e=>e.SemReducer.semList))],[j,v]=(0,a.useState)(""),[C,w]=(0,a.useState)(""),[E,f]=(0,a.useState)(""),[_,L]=(0,a.useState)(!1);(0,a.useEffect)((()=>{((e,t,s)=>{e(c(!0)),(0,o.c)({method:"GET",url:l.G+"getSubjectList&univcode="+t+"&collcode="+s,headers:{"Content-Type":"application/json",Authorization:"dssd"}}).then((t=>{0===t.data.error_code?(console.log(t.data.data),e({type:"DEGREE_INFO",payload:t.data.data})):e({type:"CLEAR_DEGREE_INFO"})}))})(e,t.funivcode,t.fcollcode)}),[]),(0,a.useEffect)((()=>{L(!!E)}),[E]);const I=async s=>{v(s),await((e,t,s,a)=>{t(c(!0)),(0,o.c)({method:"GET",url:l.G+"getSemdet°="+e+"&univcode="+s+"&collcode="+a,headers:{"Content-Type":"application/json",Authorization:"dssd"}}).then((e=>{console.log(e,"bsdalbv"),0===e.data.error_code?(console.log(e.data.data),t({type:"SEM_INFO",payload:e.data.data})):t({type:"CLEAR_SEM_INFO"})}))})(s,e,t.funivcode,t.fcollcode),w(""),f("")},k=async s=>(f(s),""==j?((0,S._)("Select Degree"),void f("")):""==C?((0,S._)("Select Semester"),void f("")):void await((e,t,s,a,n,d)=>{a(c(!0)),(0,o.c)({method:"GET",url:l.G+"getSubjectdet°ree="+e+"&sem="+t+"&type="+s+"&univcode="+n+"&collcode="+d,headers:{"Content-Type":"application/json",Authorization:"dssd"}}).then((e=>{0===e.data.error_code?(console.log(e.data.data),a({type:"SUBJECT_LIST_INFO",payload:e.data.data})):a({type:"CLEAR_SUBJECT_LIST_INFO"})}))})(j,C,s,e,t.funivcode,t.fcollcode)),D=[{title:"SL.NO",dataIndex:"slno"},{title:"Subject Code",dataIndex:"subcode",...(0,y.y)("subcode")},{title:"Subject Name",dataIndex:"subname",...(0,y.y)("subname"),sorter:(e,t)=>e.subname.length-t.subname.length,sortDirections:["descend","ascend"]},{title:"Sub Short",dataIndex:"subshort",...(0,y.y)("subshort"),sorter:(e,t)=>e.subshort.length-t.subshort.length,sortDirections:["descend","ascend"]},{title:"QP Code",dataIndex:"qpcode",...(0,y.y)("qpcode"),sorter:(e,t)=>e.qpcode-t.qpcode,sortDirections:["descend","ascend"]},{title:"Max Marks",dataIndex:"maxmarks",...(0,y.y)("maxmarks"),sorter:(e,t)=>e.maxmarks.length-t.maxmarks.length,sortDirections:["descend","ascend"]},{title:"Element",dataIndex:"element",...(0,y.y)("element"),sorter:(e,t)=>e.element.length-t.element.length,sortDirections:["descend","ascend"]}],R=g.map(((e,t)=>({slno:t+1,subcode:e.FSUBCODE,subname:e.FSUBNAME,subshort:e.FSUBSHORT,qpcode:e.FQPCODE,maxmarks:e.FSMAXMARKS,element:e.Remarks})));return(0,x.jsx)("div",{style:{margin:"20px"},children:(0,x.jsxs)(n.c,{hoverable:!0,title:"Subject Listing",style:{width:"100%"},extra:(0,x.jsxs)(d.c,{direction:"horizontal",children:[(0,x.jsx)(r.cp,{className:"report",onClick:()=>{window.open(l.G+"subjectListReportpdf°ree="+j+"&sem="+C+"&type="+E+"&univcode="+t.funivcode+"&collcode="+t.fcollcode)},children:"Report"}),(0,x.jsx)(r.cp,{className:"clear",onClick:()=>{v(""),w(""),f(""),L(!1)},children:"Clear"}),(0,x.jsx)(r.cp,{className:"exit",children:"Exit"})]}),children:[(0,x.jsx)("div",{style:{marginBottom:"20px"},children:(0,x.jsxs)(i.c,{gutter:16,children:[(0,x.jsxs)(u.c,{span:10,children:[(0,x.jsx)("label",{children:"Degree"}),(0,x.jsx)(h.c,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:j,options:s,onChange:e=>I(e)})]}),(0,x.jsxs)(u.c,{span:7,children:[(0,x.jsx)("label",{children:"Semester"}),(0,x.jsx)(h.c,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:C,options:b,onChange:e=>(async e=>{w(e),f("")})(e)})]}),(0,x.jsxs)(u.c,{span:7,children:[(0,x.jsx)("label",{children:"Type "}),(0,x.jsx)(h.c,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:E,options:[{value:"mainSub",label:"Main Subject ?"},{value:"elementSub",label:" Subject with elements?"},{value:"theorypaper",label:"Theory Papers only?"}],onChange:e=>k(e)})]})]})}),_&&(0,x.jsx)(p.c,{columns:D,dataSource:R,size:"small"})]})})}}}]);
//# sourceMappingURL=756.3d31e7da.chunk.js.map
|