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 : 52.14.125.137


Current Path : /proc/thread-self/root/var/www/college/static/js/
Upload File :
Current File : //proc/thread-self/root/var/www/college/static/js/756.3c1e379e.chunk.js

"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[756],{2987:(e,t,a)=>{a.d(t,{W0:()=>r,iM:()=>i,yy:()=>d});var s=a(1600),o=a(4692),l=a(2951),c=a(4387),n=a(2496);const d=e=>({filterDropdown:t=>{let{setSelectedKeys:a,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)(s.c,{autoFocus:!0,placeholder:"Search ".concat(e),value:d,onChange:e=>a(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":"#fff"}}),onFilter:(t,a)=>a[e].toString().toLowerCase().includes(t.toLowerCase())}),r=(e,t)=>t.value.toString().toLowerCase().indexOf(e.toLowerCase())>=0||t.label.toString().toLowerCase().indexOf(e.toLowerCase())>=0,i=(e,t,a)=>e[a].localeCompare(t[a])},6756:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var s=a(9060),o=a(8372),l=a(1344);const c=e=>({type:"LOADING",loading:e});var n=a(8836),d=a(4692),r=a(2951),i=a(3752),u=a(9196),h=a(3516),p=a(5866),m=a(624),y=a(1224),S=a(2987),x=a(2496);const b=()=>{const e=(0,m.OY)(),t=(0,m.w1)((e=>e.AuthReducer.userData)),a=(0,m.w1)((e=>e.DegreeReducer.degreeList)),b=(0,m.w1)((e=>e.SubjectReducer.subjectList)),g=[{value:"All",label:"All"},...(0,m.w1)((e=>e.SemReducer.semList))],[j,v]=(0,s.useState)(""),[C,w]=(0,s.useState)(""),[f,E]=(0,s.useState)(""),[_,L]=(0,s.useState)(!1);(0,s.useEffect)((()=>{((e,t,a)=>{e(c(!0)),(0,o.c)({method:"GET",url:l.G+"getSubjectList&univcode="+t+"&collcode="+a,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,s.useEffect)((()=>{L(!!f)}),[f]);const I=async a=>{v(a),await((e,t,a,s)=>{t(c(!0)),(0,o.c)({method:"GET",url:l.G+"getSemdet&deg="+e+"&univcode="+a+"&collcode="+s,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"})}))})(a,e,t.funivcode,t.fcollcode),w(""),E("")},k=async a=>(E(a),""==j?((0,y._)("Select Degree"),void E("")):""==C?((0,y._)("Select Semester"),void E("")):void await((e,t,a,s,n,d)=>{s(c(!0)),(0,o.c)({method:"GET",url:l.G+"getSubjectdet&degree="+e+"&sem="+t+"&type="+a+"&univcode="+n+"&collcode="+d,headers:{"Content-Type":"application/json",Authorization:"dssd"}}).then((e=>{0===e.data.error_code?(console.log(e.data.data),s({type:"SUBJECT_LIST_INFO",payload:e.data.data})):s({type:"CLEAR_SUBJECT_LIST_INFO"})}))})(j,C,a,e,t.funivcode,t.fcollcode)),D=[{title:"SL.NO",dataIndex:"slno"},{title:"Subject Code",dataIndex:"subcode",...(0,S.yy)("subcode")},{title:"Subject Name",dataIndex:"subname",...(0,S.yy)("subname"),sorter:(e,t)=>e.subname.length-t.subname.length,sortDirections:["descend","ascend"]},{title:"Sub Short",dataIndex:"subshort",...(0,S.yy)("subshort"),sorter:(e,t)=>e.subshort.length-t.subshort.length,sortDirections:["descend","ascend"]},{title:"QP Code",dataIndex:"qpcode",...(0,S.yy)("qpcode"),sorter:(e,t)=>e.qpcode-t.qpcode,sortDirections:["descend","ascend"]},{title:"Max Marks",dataIndex:"maxmarks",...(0,S.yy)("maxmarks"),sorter:(e,t)=>e.maxmarks.length-t.maxmarks.length,sortDirections:["descend","ascend"]},{title:"Element",dataIndex:"element",...(0,S.yy)("element"),sorter:(e,t)=>e.element.length-t.element.length,sortDirections:["descend","ascend"]}],R=b.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",{className:"container-fluid",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&degree="+j+"&sem="+C+"&type="+f+"&univcode="+t.funivcode+"&collcode="+t.fcollcode)},children:"Report"}),(0,x.jsx)(r.cp,{className:"clear",onClick:()=>{v(""),w(""),E(""),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:a,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:g,onChange:e=>(async e=>{w(e),E("")})(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:f,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.3c1e379e.chunk.js.map