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.227.183.161
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[756],{2987:(e,t,a)=>{a.d(t,{W0:()=>n,iM:()=>i,yy:()=>d});var s=a(1600),l=a(4692),c=a(2951),o=a(4387),r=a(2496);const d=e=>({filterDropdown:t=>{let{setSelectedKeys:a,selectedKeys:d,confirm:n,clearFilters:i,close:h}=t;return(0,r.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,r.jsx)(s.c,{autoFocus:!0,placeholder:"Search ".concat(e),value:d,onChange:e=>a(e.target.value?[e.target.value]:[]),onPressEnter:()=>{n()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(l.c,{children:[(0,r.jsx)(c.cp,{type:"primary",onClick:()=>n(),icon:(0,r.jsx)(o.c,{}),size:"small",style:{width:90},children:"Search"}),(0,r.jsx)(c.cp,{onClick:()=>{i(),n()},size:"small",style:{width:90},children:"Reset"})]})]})},filterIcon:e=>(0,r.jsx)(o.c,{style:{color:e?"#1677ff":"#fff"}}),onFilter:(t,a)=>a[e].toString().toLowerCase().includes(t.toLowerCase())}),n=(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),l=a(8372),c=a(1344),o=a(1224);const r=e=>({type:"LOADING",loading:e});var d=a(8836),n=a(4692),i=a(2951),h=a(3752),u=a(9196),p=a(3516),m=a(5866),y=a(624),S=a(2987),x=a(2496);const b=()=>{const e=(0,y.OY)(),t=(0,y.w1)((e=>e.AuthReducer.userData)),a=(0,y.w1)((e=>e.DegreeReducer.degreeList)),b=(0,y.w1)((e=>e.SubjectReducer.subjectList)),g=[{value:"All",label:"All"},...(0,y.w1)((e=>e.SemReducer.semList))],[j,w]=(0,s.useState)(""),[C,E]=(0,s.useState)(""),[f,_]=(0,s.useState)(""),[v,L]=(0,s.useState)(!1);(0,s.useEffect)((()=>{((e,t)=>{e(r(!0));try{(0,l.c)({method:"GET",url:c.G+"getSubjectList&collcode="+t}).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"})}))}catch(a){e(r(!1)),(0,o._)(a)}})(e,t.fcollcode)}),[]),(0,s.useEffect)((()=>{L(!!f)}),[f]);const I=async a=>{w(a),await((e,t,a)=>{t(r(!0));try{(0,l.c)({method:"GET",url:c.G+"getSemdet°="+e+"&collcode="+a}).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"})}))}catch(s){t(r(!1)),(0,o._)(s)}})(a,e,t.fcollcode),E(""),_("")},k=async a=>(_(a),""==j?((0,o._)("Select Degree"),void _("")):""==C?((0,o._)("Select Semester"),void _("")):void await((e,t,a,s,d)=>{s(r(!0));try{(0,l.c)({method:"GET",url:c.G+"getSubjectdet°ree="+e+"&sem="+t+"&type="+a+"&collcode="+d}).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"})}))}catch(n){s(r(!1)),(0,o._)(n)}})(j,C,a,e,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)(d.c,{hoverable:!0,title:"Subject Listing",style:{width:"100%"},extra:(0,x.jsxs)(n.c,{direction:"horizontal",children:[(0,x.jsx)(i.cp,{className:"report",onClick:()=>{window.open(c.G+"subjectListReportpdf°ree="+j+"&sem="+C+"&type="+f+"&collcode="+t.fcollcode)},children:"Report"}),(0,x.jsx)(i.cp,{className:"clear",onClick:()=>{w(""),E(""),_(""),L(!1)},children:"Clear"}),(0,x.jsx)(i.cp,{className:"exit",children:"Exit"})]}),children:[(0,x.jsx)("div",{style:{marginBottom:"20px"},children:(0,x.jsxs)(h.c,{gutter:16,children:[(0,x.jsxs)(u.c,{span:10,children:[(0,x.jsx)("label",{children:"Degree"}),(0,x.jsx)(p.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)(p.c,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:C,options:g,onChange:e=>(async e=>{E(e),_("")})(e)})]}),(0,x.jsxs)(u.c,{span:7,children:[(0,x.jsx)("label",{children:"Type "}),(0,x.jsx)(p.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)})]})]})}),v&&(0,x.jsx)(m.c,{columns:D,dataSource:R,size:"small"})]})})}}}]);
//# sourceMappingURL=756.73898147.chunk.js.map
|