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.141.198.113
(window.webpackJsonp=window.webpackJsonp||[]).push([[216],{1415:function(e,t,r){"use strict";r.r(t);var n=r(3),a=r(0),o=r(68),c=r(100),i=r(101),l=r(103),s=r(102),u=r(104),p=r(2),h=r.n(p),d=r(1377),f=r(949),y=r(1343),g=r(272),v=r(1335),m=r(1337),b=r(1333),w=r(1138),x=r(941),E=r(105),O=r(267),j=r(271);function k(){k=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",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,c=Object.create(o.prototype),i=new P(n||[]);return a(c,"_invoke",{value:A(e,r,i)}),c}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",f="executing",y="completed",g={};function v(){}function m(){}function b(){}var w={};s(w,c,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(D([])));E&&E!==r&&n.call(E,c)&&(w=E);var O=b.prototype=v.prototype=Object.create(w);function j(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function L(e,t){function r(a,o,c,i){var l=p(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 A(t,r,n){var a=h;return function(o,c){if(a===f)throw new Error("Generator is already running");if(a===y){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=S(i,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var s=p(t,r,n);if("normal"===s.type){if(a=n.done?y:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=y,n.method="throw",n.arg=s.arg)}}}function S(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,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;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,g):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(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 P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(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 m.prototype=b,a(O,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},j(L.prototype),s(L.prototype,i,function(){return this}),t.AsyncIterator=L,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new L(u(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},j(O),s(O,l,"Generator"),s(O,c,function(){return this}),s(O,"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=D,P.prototype={constructor:P,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,g):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),g},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),g}},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:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var L=r(461),A=r.n(L);r(462);function S(){S=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",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,c=Object.create(o.prototype),i=new P(n||[]);return a(c,"_invoke",{value:L(e,r,i)}),c}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",f="executing",y="completed",g={};function v(){}function m(){}function b(){}var w={};s(w,c,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(D([])));E&&E!==r&&n.call(E,c)&&(w=E);var O=b.prototype=v.prototype=Object.create(w);function j(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){function r(a,o,c,i){var l=p(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=h;return function(o,c){if(a===f)throw new Error("Generator is already running");if(a===y){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=A(i,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var s=p(t,r,n);if("normal"===s.type){if(a=n.done?y:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=y,n.method="throw",n.arg=s.arg)}}}function A(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,A(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;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,g):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(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 P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(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 m.prototype=b,a(O,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:m,configurable:!0}),m.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},j(k.prototype),s(k.prototype,i,function(){return this}),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},j(O),s(O,l,"Generator"),s(O,c,function(){return this}),s(O,"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=D,P.prototype={constructor:P,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,g):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),g},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),g}},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:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}var _=function(e){function t(e){var r;return Object(c.a)(this,t),(r=Object(l.a)(this,Object(s.a)(t).call(this,e))).componentDidMount=Object(o.a)(S().mark(function e(){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.getregcodeyear(r.props.collcode);case 2:r.setState({frmsubmit:!1});case 3:case"end":return e.stop()}},e)})),r.handleChangeYear=function(){var e=Object(o.a)(S().mark(function e(t,n){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({year:n.value}),e.next=3,r.props.getregqpcode(n.value,r.props.collcode);case 3:r.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeQpCode=function(){var e=Object(o.a)(S().mark(function e(t,n){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.setState({qpcode:n.value}),e.next=3,r.props.getregpacket(n.value,r.state.year,r.props.collcode);case 3:r.setState({frmsubmit:!1});case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangePacket=function(){var e=Object(o.a)(S().mark(function e(t,n){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({qppacket:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.getsearchregcode=function(){var e=Object(o.a)(S().mark(function e(t,n){var a,o,c;return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==r.state.year){e.next=4;break}return a={header:"Error",content:"Select Year"},r.props.showError(a),e.abrupt("return");case 4:if(""!==r.state.qpcode){e.next=8;break}return o={header:"Error",content:"Select QP Code"},r.props.showError(o),e.abrupt("return");case 8:if(""!==r.state.qppacket){e.next=12;break}return c={header:"Error",content:"Select QP Packet"},r.props.showError(c),e.abrupt("return");case 12:return e.next=14,r.props.viewsearchregcode(r.state.year,r.state.qpcode,r.state.qppacket,r.props.collcode);case 14:return e.next=16,r.setState({tableData:r.props.table});case 16:r.setState({filteredData:r.props.table,currentPage:0}),r.setState({frmsubmit:!0});case 18:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleSearch=function(){var e=Object(o.a)(S().mark(function e(t,n){var a,o;return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=t.target.value.toLowerCase(),o=r.state.tableData.filter(function(e){return e.fregcode.toLowerCase().includes(a)||("100"===r.props.usertype||"200"===r.props.usertype)&&e.fansbook.toLowerCase().includes(a)}),r.setState({filteredData:o,currentPage:0,searchValue:t.target.value});case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.onFileDelete=function(){var e=Object(o.a)(S().mark(function e(t,n){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.confirm("Are You Sure ?")){e.next=5;break}return e.next=3,r.props.deleteRegcode(n);case 3:e.next=5;break;case 5:return e.next=7,r.props.viewsearchregcode(r.state.year,r.state.qpcode,r.state.qppacket,r.props.collcode);case 7:r.setState({filteredData:r.props.table,currentPage:0}),r.setState({frmsubmit:!0});case 9:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.onFileClose=Object(o.a)(S().mark(function e(){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)})),r.handleCancel=function(){r.setState({year:"",qpcode:"",qppacket:"",frmsubmit:!1})},r.handlePageClick=function(e){r.setState({currentPage:e.selected})},r.state=Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({year:"",qpcode:"All",qppacket:"All",data:[],filteredData:[],currentPage:0,searchValue:"",frmsubmit:!1,showPopup:!1,modal:!1,offset:0},"data",[]),"perPage",50),"pageCount",null),"tableData",[]),"formView",!1),r}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.state,r=t.year,o=t.qpcode,c=t.qppacket,i=[{key:"All",value:"All",text:"All"}],l=this.props.year.map(function(e,t){return{key:t,value:e.fyear+","+e.fexamtype+","+e.fexamdate,text:e.fyear+"/"+e.fexamtype+"-"+e.fexamdate}}),s=this.props.qpcode.map(function(e,t){return{key:t,value:e.fqpcode,text:e.fqpcode+" - "+e.fsubname}}),u=[].concat(i,Object(n.a)(s)),p=this.props.packet.map(function(e,t){return{key:t,value:e.fpacket,text:e.fpacket}}),E=[].concat(i,Object(n.a)(p)),O=Math.ceil(this.state.filteredData.length/50),j=this.state.filteredData.slice(50*this.state.currentPage,50*(this.state.currentPage+1));return h.a.createElement("div",null,h.a.createElement(d.a,{fluid:!0},h.a.createElement(f.a,null,h.a.createElement(d.a.Header,{style:{display:"flex"}},h.a.createElement("h4",null,"Seacrh Coding Slip"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(y.a,{basic:!0,color:"blue",icon:"ban",content:"Cancel",onClick:this.handleCancel}),h.a.createElement(x.a,{to:"/dashboard"},h.a.createElement(y.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),h.a.createElement(g.a,null),h.a.createElement(d.a.Description,{style:{height:"630px",overflowY:"auto"}},h.a.createElement(v.a,null,h.a.createElement(v.a.Group,null,h.a.createElement(v.a.Field,{width:6},h.a.createElement("label",null," Year"),h.a.createElement(m.a,{fluid:!0,selection:!0,search:!0,value:r,options:l,name:"year",placeholder:"Select Year",onChange:this.handleChangeYear})),h.a.createElement(v.a.Field,{width:6},h.a.createElement("label",null," QP Code"),h.a.createElement(m.a,{fluid:!0,selection:!0,search:!0,value:o,options:u,name:"qpcode",placeholder:"Select QP Code",onChange:this.handleChangeQpCode})),h.a.createElement(v.a.Field,{width:6},h.a.createElement("label",null," QP Packet"),h.a.createElement(m.a,{fluid:!0,selection:!0,search:!0,value:c,options:E,name:"qppacket",placeholder:"Select QP Packet",onChange:this.handleChangePacket})),h.a.createElement(v.a.Field,null,h.a.createElement("label",null),h.a.createElement(y.a,{style:{marginTop:"19px"},basic:!0,color:"blue",onClick:this.getsearchregcode,content:"View"})))),this.state.frmsubmit?h.a.createElement("div",null,h.a.createElement("table",{style:{width:"100%"}},h.a.createElement("thead",{style:{position:"sticky",top:0,backgroundColor:"tan",border:"1px solid"}},h.a.createElement("tr",null,h.a.createElement("td",{colSpan:9,style:{padding:"10px"}},h.a.createElement("input",{type:"text",name:"search",placeholder:"Search by Reg Code or Answer Booklet Number",value:this.state.searchValue,onChange:this.handleSearch,style:{width:"100%",padding:"5px",borderRadius:"25px",border:"1px solid"}}))),h.a.createElement("tr",{style:{height:"40px"}},h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","66px")},"Sl. No."),h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","85px")},"Year&Exam Type"),h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","135px")},"Exam Date"),h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","85px")},"QP. Code"),h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","75px")},"Packet"),h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","60px")},"Sl.No."),h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","110px")},"Reg Code"),h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","111px")},"Answer Book No."),h.a.createElement("th",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","165px")},"Action"))),j.map(function(t,r){var n="https://university-codeslips.s3.ap-south-1.amazonaws.com/"+t.ffilepath;return h.a.createElement("tr",{key:r},h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","66px")},r+1),h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","85px")},t.fyear,"-",t.fexamtype),h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","135px")},t.fexamdate),h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","85px")},t.fqpcode),h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","75px")},t.fpacket),h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","60px")},t.fslno),h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","110px")},t.fregcode),h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","111px")},t.fansbook),h.a.createElement("td",{style:Object(a.a)(Object(a.a)({border:"1px solid",textAlign:"center"},"border","1px solid"),"width","165px")},h.a.createElement(b.a,{style:{width:"50%"},onOpen:function(){return e.setState({formView:!0})},onClose:function(){return e.setState({formView:!1})},open:e.state.formView,trigger:h.a.createElement(y.a,{basic:!0,color:"blue"},"View")},h.a.createElement(h.a.Fragment,null,h.a.createElement(b.a.Header,null,h.a.createElement("div",{className:"row",style:{display:"flex",justifyContent:"space-between"}},h.a.createElement("div",{className:"col-lg-6"},"Coding Slip"),h.a.createElement(b.a.Actions,null,h.a.createElement(y.a,{color:"black",onClick:function(){return e.setState({formView:!1})}},"Close")))),h.a.createElement(b.a.Content,{image:!0},h.a.createElement(b.a.Description,null,h.a.createElement("img",{src:n,width:"650px",height:"600px",style:{backgroundSize:"cover"}}))))),h.a.createElement(w.a,{trigger:h.a.createElement(y.a,{basic:!0,color:"red",onClick:function(){return e.onFileDelete(r,t.fregcode)},content:"Delete"}),content:"Are you sure to Delete?",inverted:!0})))})),h.a.createElement("div",null,this.state.postData,h.a.createElement(A.a,{previousLabel:"Previous",nextLabel:"Next",pageCount:O,marginPagesDisplayed:2,pageRangeDisplayed:5,onPageChange:this.handlePageClick,containerClassName:"pagination",activeClassName:"active",previousClassName:"previous",nextClassName:"next",disabledClassName:"disabled"}))):null))))}}]),t}(p.Component);t.default=Object(E.b)(function(e){return{univcode:e.univ.funivcode,collcode:e.user.fuserid,year:e.getregcodeyear,qpcode:e.getregqpcode,packet:e.getregpacket,table:e.viewsearchregcode,usertype:e.user.fcurtype}},{showError:O.A,getregcodeyear:function(e){return function(){var t=Object(o.a)(k().mark(function t(r,n){var a,o,c,i;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=n(),r({type:"SET_LOADER"}),t.next=4,j.a.get("/app.php?a=getregcodeyear&univcode="+a.univ.funivcode+"&collcode="+e);case 4:o=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof o.data?(c={header:"Error",content:"Something went wrong"},r(Object(O.A)(c))):-1===o.data.error_code?(i={header:"Error",content:o.data.data.msg},r(Object(O.A)(i))):r({type:"GET_MODE_DATA",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},getregqpcode:function(e,t){return function(){var r=Object(o.a)(k().mark(function r(n,a){var o,c,i,l;return k().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=a(),n({type:"SET_LOADER"}),r.next=4,j.a.get("/app.php?a=getregqpcode&univcode="+o.univ.funivcode+"&collcode="+t+"&year="+e);case 4:c=r.sent,n({type:"UNSET_LOADER"}),"object"!==typeof c.data?(i={header:"Error",content:"Something went wrong"},n(Object(O.A)(i))):-1===c.data.error_code?(l={header:"Error",content:c.data.data.msg},n(Object(O.A)(l))):n({type:"GET_QP_PACKET_DATA",payload:c.data});case 7:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},getregpacket:function(e,t,r){return function(){var n=Object(o.a)(k().mark(function n(a,o){var c,i,l,s;return k().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c=o(),a({type:"SET_LOADER"}),n.next=4,j.a.get("/app.php?a=getregpacket&univcode="+c.univ.funivcode+"&qpcode="+e+"&year="+t+"&collcode="+r);case 4:i=n.sent,a({type:"UNSET_LOADER"}),"object"!==typeof i.data?(l={header:"Error",content:"Something went wrong"},a(Object(O.A)(l))):-1===i.data.error_code?(s={header:"Error",content:i.data.data.msg},a(Object(O.A)(s))):a({type:"GET_TABLE_DATA",payload:i.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},viewsearchregcode:function(e,t,r,n){return function(){var a=Object(o.a)(k().mark(function a(o,c){var i,l,s,u;return k().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i=c(),o({type:"SET_LOADER"}),a.next=4,j.a.get("/app.php?a=viewsearchregcode&univcode="+i.univ.funivcode+"&year="+e+"&qpcode="+t+"&qppacket="+r+"&collcode="+n);case 4:l=a.sent,o({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},o(Object(O.A)(s))):-1===l.data.error_code?(u={header:"Error",content:l.data.data.msg},o(Object(O.A)(u))):o({type:"VIEW_TABLE_DATA",payload:l.data});case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},deleteRegcode:function(e){return function(){var t=Object(o.a)(k().mark(function t(r,n){var a,o,c,i;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=n(),r({type:"SET_LOADER"}),t.next=4,j.a.get("/app.php?a=deleteRegcode&univcode="+a.univ.funivcode+"®="+e);case 4:o=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof o.data?(c={header:"Error",content:"Something went wrong"},r(Object(O.A)(c))):-1===o.data.error_code&&(i={header:"Error",content:o.data.data.msg},r(Object(O.A)(i)));case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()}})(_)},462:function(e,t,r){}}]);
//# sourceMappingURL=216.f5232aad.chunk.js.map
|