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.191.192.250
import{x as u,t,L as r,B as d,D as b,M as f}from"./index-C5nTC1sr.js";import{d as h,e as y}from"./SubjectCreation-BRg4j80p.js";import{S as j}from"./index-xkXp_ecv.js";import{F as w}from"./Table-BBjGb9D4.js";import"./index-D2VQ16E-.js";import"./index-lBLjgwZW.js";import"./index-DMsYpF-a.js";import"./responsiveObserver-DHzoRzuf.js";function k(a){const i=(e,n,o,m,g,x)=>{let p=f.confirm({title:"Warning",content:"Do you want delete?",okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}},onOk(){if(!p){showAlert("Row not found");return}a.getdeletedata(e,n,o,m,g,x)},onCancel(){console.log("Cancelled")}})},l=async(e,n,o)=>{await a.getEditData(e,n,o)},c=[{title:"Sl.No",dataIndex:"slno",key:"label",width:"2%",align:"center"},{title:"Deggrp",dataIndex:"deggrp",key:"label",width:"6%",align:"center"},{title:"Board",dataIndex:"board",key:"label",width:"3%",align:"center"},{title:"Degree",dataIndex:"degree",key:"label",width:"7%",align:"center"},{title:"Exam No.",dataIndex:"examno",key:"label",width:"5%",align:"center"},{title:"Subcode",dataIndex:"subcode",key:"label",width:"3%",align:"center"},{title:"Subject Name",dataIndex:"subjectname",key:"label",width:"35%",align:"left"},{title:"Qp Code",dataIndex:"qpcode",key:"label",width:"3%",align:"center"},{title:"Shortname",dataIndex:"shortname",key:"label",width:"3%",align:"center"},{title:"Val. Max.",dataIndex:"valmax",key:"label",width:"5%",align:"center"},{title:"Action",dataIndex:"action",key:"label",width:"15%",align:"center"}],s=a.viewsubject.map((e,n)=>({key:n,slno:n+1,deggrp:e.fdeggrp,board:e.fboard,degree:e.fdegree,examno:e.fexamno,subcode:e.fsubcode,subjectname:e.fsubname,qpcode:e.fqpcode,shortname:e.fsubshort,valmax:e.fvalmax,action:t.jsxs(t.Fragment,{children:[t.jsx(r,{to:{pathname:`/qpsettings/subject/${e.fqpcode}/update`},children:t.jsx(d,{type:"primary",size:"medium",onClick:()=>l(e.fqpcode,e.fexamno,e.fdegree),children:"Edit"})}),t.jsx(d,{type:"primary",size:"medium",danger:!0,style:{marginLeft:"10px"},onClick:()=>i(e.fexamno,e.fqpcode,e.fboard,e.fdeggrp,e.fsubcode,e.fdegree),children:"Delete"})]})}));return t.jsx(b,{style:{margin:"6rem 10px 10px"},title:t.jsx("h6",{children:"Subject Details"}),extra:t.jsxs(j,{children:[t.jsx(r,{to:"/qpsettings/subject/type",children:t.jsx(d,{type:"primary",children:"Back"})}),t.jsx(r,{to:"/",children:t.jsx(d,{type:"primary",danger:!0,children:"Exit"})})]}),children:t.jsx(w,{dataSource:s,columns:c,pagination:!1,bordered:!0,size:"small",style:{width:"100%"},scroll:{y:400,x:"max-content"}})})}const D=a=>({loginfo:a.loginfo,loader:a.loader.btnLoading,viewsubject:a.viewsubject}),z=u(D,{getEditData:h,getdeletedata:y})(k);export{z as default};
|