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.200.151
(window.webpackJsonp=window.webpackJsonp||[]).push([[172,307],{1329:function(e,t,r){"use strict";r.r(t);var n=r(100),a=r(101),o=r(103),c=r(102),i=r(104),l=r(2),s=r.n(l),u=r(105),p=r(1377),d=r(949),f=r(1343),h=r(272),y=r(941),m=r(558),v=r(274),g=function(e){function t(){var e,r;Object(n.a)(this,t);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return(r=Object(o.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(i)))).componentDidMount=function(){r.props.viewOmrMarksEnrtyDet()},r.getOmrQpReport=function(e,t,n){window.open(v.c+"getOmrQpReport&univcode="+r.props.user.fcuruniv+"&qpcode="+e+"&year="+t+"&mode="+n)},r}return Object(i.a)(t,e),Object(a.a)(t,[{key:"render",value:function(){var e=this;return s.a.createElement(p.a,{fluid:!0},s.a.createElement(d.a,null,s.a.createElement(p.a.Header,{style:{display:"flex"}},s.a.createElement("h4",null,"OMR Question Entry"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(y.a,{to:"/addOmrEntrydata"},s.a.createElement(f.a,{basic:!0,color:"blue",icon:"plus",content:"Add"})),s.a.createElement(y.a,{to:"/dashboard"},s.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),s.a.createElement(h.a,null),s.a.createElement(p.a.Description,null,s.a.createElement("div",{style:{height:"580px",overflowY:"auto"}},s.a.createElement("table",{style:{width:"100%",border:"1px solid grey",borderCollapse:"collapse"}},s.a.createElement("thead",{style:{backgroundColor:"tan",border:"1px solid grey",height:"40px",position:"sticky !important",top:0,zIndex:2,textAlign:"center",fontWeight:"bold",color:"#000"}},s.a.createElement("tr",{style:{height:"30px",textAlign:"center"}},s.a.createElement("th",{style:{border:"1px solid grey",borderCollapse:"collapse",width:"8%"}},"Sl. No"),s.a.createElement("th",{style:{border:"1px solid grey",borderCollapse:"collapse",width:"16%"}},"QP. Code"),s.a.createElement("th",{style:{border:"1px solid grey",borderCollapse:"collapse",width:"8%"}},"Year"),s.a.createElement("th",{style:{border:"1px solid grey",borderCollapse:"collapse",width:"8%"}},"Mode"),s.a.createElement("th",{style:{border:"1px solid grey",borderCollapse:"collapse",width:"28%"}},"Examdate"),s.a.createElement("th",{style:{border:"1px solid grey",borderCollapse:"collapse",width:"8%"}},"Max. Marks"),s.a.createElement("th",{style:{border:"1px solid grey",borderCollapse:"collapse",width:"8%"}},"Max. Qn."),s.a.createElement("th",{style:{border:"1px solid grey",borderCollapse:"collapse",width:"16%"}},"Action"))),s.a.createElement("tbody",null,this.props.omrData.map(function(t,r){return s.a.createElement("tr",{key:r,style:{height:"30px",textAlign:"center"}},s.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},r+1),s.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fqpcode),s.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fyear),s.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fexamtype),s.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fexamdate),s.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fmaxmarks),s.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},t.fmaxqn),s.a.createElement("td",{style:{border:"1px solid grey",borderCollapse:"collapse"}},s.a.createElement(y.a,{to:{pathname:"/addOmrEntry/".concat(t.fqpcode,"/").concat(t.fyear,"/").concat(t.fexamtype)}},s.a.createElement(f.a,{basic:!0,content:"Edit",icon:"edit",color:"green",size:"tiny"})),s.a.createElement(f.a,{basic:!0,content:"Report",icon:"file pdf outline",color:"blue",size:"tiny",onClick:function(){return e.getOmrQpReport(t.fqpcode,t.fyear,t.fexamtype)}})))})))))))}}]),t}(l.Component);t.default=Object(u.b)(function(e){return console.log(e),{user:e.user,omrData:e.viewOmrMarksEnrtyDet}},{viewOmrMarksEnrtyDet:m.g})(g)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),c=r.n(o),i=r(2),l=r.n(i),s=r(349),u=r(613),p=r(611),d=r(269);function f(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,i=e.fitted,h=e.hidden,y=e.horizontal,m=e.inverted,v=e.section,g=e.vertical,E=c()("ui",Object(s.a)(n,"clearing"),Object(s.a)(i,"fitted"),Object(s.a)(h,"hidden"),Object(s.a)(y,"horizontal"),Object(s.a)(m,"inverted"),Object(s.a)(v,"section"),Object(s.a)(g,"vertical"),"divider",r),b=Object(u.a)(f,e),w=Object(p.a)(f,e);return l.a.createElement(w,a()({},b,{className:E}),d.a.isNil(t)?o:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},558:function(e,t,r){"use strict";r.d(t,"b",function(){return l}),r.d(t,"c",function(){return s}),r.d(t,"d",function(){return u}),r.d(t,"g",function(){return p}),r.d(t,"a",function(){return d}),r.d(t,"e",function(){return f}),r.d(t,"f",function(){return y});var n=r(68),a=r(271),o=r(267),c=r(286);function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,c=Object.create(o.prototype),i=new S(n||[]);return a(c,"_invoke",{value:L(e,r,i)}),c}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f="suspendedStart",h="suspendedYield",y="executing",m="completed",v={};function g(){}function E(){}function b(){}var w={};u(w,c,function(){return this});var O=Object.getPrototypeOf,x=O&&O(O(k([])));x&&x!==r&&n.call(x,c)&&(w=x);var _=b.prototype=g.prototype=Object.create(w);function j(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){function r(a,o,c,i){var l=d(e[a],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(u).then(function(e){s.value=e,c(s)},function(e){return r("throw",e,c,i)})}i(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function L(t,r,n){var a=f;return function(o,c){if(a===y)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var l=R(i,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var s=d(t,r,n);if("normal"===s.type){if(a=n.done?m:h,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=m,n.method="throw",n.arg=s.arg)}}}function R(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return E.prototype=b,a(_,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:E,configurable:!0}),E.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},j(A.prototype),u(A.prototype,l,function(){return this}),t.AsyncIterator=A,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new A(p(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},j(_),u(_,s,"Generator"),u(_,c,function(){return this}),u(_,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return i.type="throw",i.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],i=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var l=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(l&&s){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var l=function(){return function(){var e=Object(n.a)(i().mark(function e(t,r){var n,c,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php?a=getOmrQpCode&univcode="+n.univ.funivcode);case 4:c=e.sent,console.log(c),t({type:"UNSET_LOADER"}),"object"!==typeof c.data?(l={header:"Error",content:"Something went wrong"},t(Object(o.A)(l))):-1==c.data.error_code?(s={header:"Error",content:c.data.data.msg},t(Object(o.A)(s)),t({type:"CLEAR_OMR_QP",payload:c.data.data})):t({type:"GET_OMR_QP",payload:c.data.data});case 8:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,s,u;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php?a=getOmrYearMode&univcode="+c.univ.funivcode+"&qpcode="+e);case 4:l=t.sent,console.log(l),r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},r(Object(o.A)(s))):-1==l.data.error_code?(u={header:"Error",content:l.data.data.msg},r(Object(o.A)(u)),r({type:"CLEAR_OMR_YEAR_MODE",payload:l.data.data})):r({type:"GET_OMR_YEAR_MODE",payload:l.data.data});case 8:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},u=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var l,s,u,p,d;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=saveOmrQnDet&univcode="+l.univ.funivcode,e);case 4:s=t.sent,console.log(s),r({type:"UNSET_LOADER"}),"object"!==typeof s.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1==s.data.error_code?(p={header:"Error",content:s.data.data.msg},r(Object(o.A)(p))):(d={header:"Success",content:s.data.data.msg},r(Object(o.A)(d)),c.l.push("/omrmqnentry"));case 8:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},p=function(){return function(){var e=Object(n.a)(i().mark(function e(t,r){var n,c,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php?a=viewOmrMarksEnrtyDet&univcode="+n.univ.funivcode);case 4:c=e.sent,console.log(c),t({type:"UNSET_LOADER"}),"object"!==typeof c.data?(l={header:"Error",content:"Something went wrong"},t(Object(o.A)(l))):-1==c.data.error_code?(s={header:"Error",content:c.data.data.msg},t(Object(o.A)(s)),t({type:"CLEAR_OMR_DATA",payload:c.data.data})):t({type:"VIEW_OMR_DATA",payload:c.data.data});case 8:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},d=function(e,t,r,c){return function(){var l=Object(n.a)(i().mark(function n(l,s){var u,p,d,f;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return u=s(),l({type:"SET_LOADER"}),n.next=4,a.a.get("/app.php?a=getOmrMCQQP&univcode="+u.univ.funivcode+"&qpcode="+e+"&year="+t+"&mode="+r+"&qnno="+c);case 4:p=n.sent,console.log(p),l({type:"UNSET_LOADER"}),"object"!==typeof p.data?(d={header:"Error",content:"Something went wrong"},l(Object(o.A)(d))):-1==p.data.error_code?(f={header:"Error",content:p.data.data.msg},l(Object(o.A)(f)),l({type:"CLEAR_OMR_MCQ_DATA",payload:p.data.data})):l({type:"OMR_MCQ_DATA",payload:p.data.data});case 8:case"end":return n.stop()}},n)}));return function(e,t){return l.apply(this,arguments)}}()},f=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r(h(!0)),t.next=4,a.a.post("/app.php?a=saveOmrQp&univcode="+c.univ.funivcode,e);case 4:l=t.sent,r(h(!1)),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},r(Object(o.A)(s))):r({type:"OMR_SAVE_QP_DATA",payload:l.data.data.msg});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},h=function(e){return{type:"LOADING",payload:e}},y=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=uploadOmrFileHandlers&univcode="+c.univ.funivcode,e);case 4:l=t.sent,console.log(l),r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},r(Object(o.A)(s))):r({type:"OMR_FILE_HANDLERS",payload:l.data.data.msg});case 8:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=172.fd5b6e32.chunk.js.map
|