Commit a9626dee authored by Sandeep Sagar Panjala's avatar Sandeep Sagar Panjala

initial commit

parent b8b1836e
namespace Hims.Admin.Utilities
{
using System;
using Microsoft.AspNetCore.Mvc;
/// <inheritdoc />
/// <summary>
/// The base controller.
/// </summary>
public class BaseController : Controller
{
/// <summary>
/// The success.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="ObjectResult"/>.
/// </returns>
protected ObjectResult Success(object model = null) => this.StatusCode(200, model);
/// <summary>
/// The bad request.
/// </summary>
/// <returns>
/// The <see cref="ObjectResult"/>.
/// </returns>
protected new ObjectResult BadRequest() => this.StatusCode(400, string.Empty);
/// <summary>
/// The bad request.
/// </summary>
/// <param name="message">
/// The message.
/// </param>
/// <returns>
/// The <see cref="ObjectResult"/>.
/// </returns>
protected ObjectResult BadRequest(string message) => this.StatusCode(400, message ?? string.Empty);
/// <summary>
/// The failed request.
/// </summary>
/// <param name="message">
/// The message.
/// </param>
/// <returns>
/// The <see cref="ObjectResult"/>.
/// </returns>
protected ObjectResult Failed(string message) => this.StatusCode(417, message ?? string.Empty);
/// <summary>
/// The forbidden request.
/// </summary>
/// <param name="message">
/// The message.
/// </param>
/// <returns>
/// The <see cref="ObjectResult"/>.
/// </returns>
protected ObjectResult Forbidden(string message) => this.StatusCode(403, message ?? string.Empty);
/// <summary>
/// The server error.
/// </summary>
/// <returns>
/// The <see cref="StatusCodeResult"/>.
/// </returns>
protected ObjectResult ServerError() => this.StatusCode(500, string.Empty);
/// <summary>
/// The server error.
/// </summary>
/// <param name="message">
/// The message.
/// </param>
/// <returns>
/// The <see cref="StatusCodeResult"/>.
/// </returns>
protected ObjectResult ServerError(string message) => this.StatusCode(500, message);
/// <summary>
/// The server error.
/// </summary>
/// <param name="exception">
/// The exception.
/// </param>
/// <returns>
/// The <see cref="StatusCodeResult"/>.
/// </returns>
protected ObjectResult ServerError(Exception exception) => this.StatusCode(500, exception.Message);
}
}
\ No newline at end of file
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Careaxes">
<meta name="author" content="Careaxes">
<title>Transaction Failure | Careaxes</title>
<base href="/">
<link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.png" />
<link rel="stylesheet" type="text/css" href="assets/fonts/style.css" />
<link rel="manifest" href="./manifest.json">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="assets/css/app.css" />
<style type="text/css">
body {
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
}
.payment-success-container {
display: flex;
align-items: center;
justify-content: center;
flex-flow: column;
text-align: center;
}
.payment-success-container em {
margin-bottom: 1rem;
font-size: 100px;
}
.payment-success-container h4 {
margin-bottom: 2rem;
font-size: 28px;
}
.payment-success-container p {
margin-bottom: 2rem;
font-size: 18px;
line-height: 2rem;
}
</style>
<script type="text/javascript">
function gotoOutPatients () {
window.location.href = location.origin + "/#/app/advance-dashboard/view";
//var pathname = location.pathname.split('/').filter(x => !!x);
//if (pathname.length > 0) {
// window.location.href = location.origin + "/" + pathname[0] + "/#/app/advance-dashboard/view";
//}
//else {
// window.location.href = location.origin + "/#/app/advance-dashboard/view";
//}
}
</script>
</head>
<body>
<div class="payment-success-container">
<em class="ti ti-thumb-down text-danger"></em>
<h4 class="text-danger">Transaction Failure</h4>
<p>
@ViewBag.content
</p>
<button type="button" onclick="gotoOutPatients()" class="btn btn-danger">Go to Home</button>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Careaxes">
<meta name="author" content="Careaxes">
<title>Payment Failure | Careaxes</title>
<base href="/">
<link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.png" />
<link rel="stylesheet" type="text/css" href="assets/fonts/style.css" />
<link rel="manifest" href="./manifest.json">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="assets/css/app.css" />
<style type="text/css">
body {
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
}
.payment-success-container {
display: flex;
align-items: center;
justify-content: center;
flex-flow: column;
text-align: center;
}
.payment-success-container em {
margin-bottom: 1rem;
font-size: 100px;
}
.payment-success-container h4 {
margin-bottom: 2rem;
font-size: 28px;
}
.payment-success-container p {
margin-bottom: 2rem;
font-size: 18px;
line-height: 2rem;
}
</style>
<script type="text/javascript">
function gotoOutPatients () {
window.location.href = location.origin + "@ViewBag.routingUrlWithBillId";
@*var pathname = location.pathname.split('/').filter(x => !!x);
if (pathname.length > 0) {
window.location.href = location.origin + "/" + pathname[0] + "@ViewBag.routingUrlWithBillId";
}
else {
window.location.href = location.origin + "@ViewBag.routingUrlWithBillId";
}*@
}
</script>
</head>
<body>
<div class="payment-success-container">
<em class="ti ti-thumb-down text-danger"></em>
<h4 class="text-danger">@ViewBag.paymentType</h4>
<p>
@ViewBag.message <br /> Please wait while you're redirectig to respective page...
</p>
<button type="button" onclick="gotoOutPatients()" class="btn btn-danger">Go to Booking</button>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Careaxes">
<meta name="author" content="Careaxes">
<title>Payment Inprogress | Careaxes</title>
<base href="/">
<link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.png" />
<link rel="stylesheet" type="text/css" href="assets/fonts/style.css" />
<link rel="manifest" href="./manifest.json">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="assets/css/app.css" />
<style type="text/css">
body {
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
}
.payment-success-container {
display: flex;
align-items: center;
justify-content: center;
flex-flow: column;
text-align: center;
}
.payment-success-container em {
margin-bottom: 1rem;
font-size: 100px;
}
.payment-success-container h4 {
margin-bottom: 2rem;
font-size: 28px;
}
.payment-success-container p {
margin: 0;
font-size: 18px;
line-height: 2rem;
margin-bottom: 2rem;
}
</style>
<script type="text/javascript">
function gotoOutPatients() {
window.location.href = location.origin + "@ViewBag.routingUrlWithBillId";
@*var pathname = location.pathname.split('/').filter(x => !!x);
if (pathname.length > 0) {
window.location.href = location.origin + "/" + pathname[0] + "@ViewBag.routingUrlWithBillId";
}
else {
window.location.href = location.origin + "@ViewBag.routingUrlWithBillId";
}*@
}
</script>
</head>
<body>
<div class="payment-success-container">
<em class="ti ti-timer text-info"></em>
<h4 class="text-info">@ViewBag.paymentType</h4>
<p>
@ViewBag.message <br /> Please wait while you're redirectig to respective page...
</p>
<button type="button" onclick="gotoOutPatients()" class="btn btn-info">Go to Booking</button>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Careaxes">
<meta name="author" content="Careaxes">
<title>Payment Success | Careaxes</title>
<base href="/">
<link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.png" />
<link rel="stylesheet" type="text/css" href="assets/fonts/style.css" />
<link rel="manifest" href="./manifest.json">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="assets/css/app.css" />
<style type="text/css">
body {
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
}
.payment-success-container {
display: flex;
align-items: center;
justify-content: center;
flex-flow: column;
text-align: center;
}
.payment-success-container em {
margin-bottom: 1rem;
font-size: 100px;
}
.payment-success-container h4 {
margin-bottom: 2rem;
font-size: 28px;
}
.payment-success-container p {
margin: 0;
font-size: 18px;
line-height: 2rem;
}
</style>
<script type="text/javascript">
window.addEventListener("load", function (event) {
if (location.pathname != "/payment/result" && this.location.origin != this.location.pathname) {
window.location.href = location.origin + location.pathname + "@ViewBag.routingUrlWithBillId";
}
else {
window.location.href = location.origin +"/"+ "@ViewBag.routingUrlWithBillId";
}
@*var pathname = location.pathname.split('/').filter(x => !!x);
if (pathname.length > 0) {
window.location.href = location.origin + "/" + pathname[0] + "@ViewBag.routingUrlWithBillId";
}
else {
window.location.href = location.origin + "@ViewBag.routingUrlWithBillId";
}*@
});
</script>
</head>
<body>
<div class="payment-success-container">
<em class="ti ti-thumb-up text-success"></em>
<h4 class="text-success">@ViewBag.paymentType</h4>
<p>
@ViewBag.message <br /> Please wait while you're redirectig to respective page...
</p>
</div>
</body>
</html>
This diff is collapsed.
/*
* onScan.js - scan-events for hardware barcodes scanners in javascript
* Version: 1.4.2
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t()):e.onScan=t()}(this,function(){var d={attachTo:function(e,t){if(void 0!==e.scannerDetectionData)throw new Error("onScan.js is already initialized for DOM element "+e);var n={onScan:function(e,t){},onScanError:function(e){},onKeyProcess:function(e,t){},onKeyDetect:function(e,t){},onPaste:function(e,t){},keyCodeMapper:function(e){return d.decodeKeyEvent(e)},onScanButtonLongPress:function(){},scanButtonKeyCode:!1,scanButtonLongPressTime:500,timeBeforeScanTest:100,avgTimeByChar:30,minLength:6,suffixKeyCodes:[9,13],prefixKeyCodes:[],ignoreIfFocusOn:!1,stopPropagation:!1,preventDefault:!1,reactToKeydown:!0,reactToPaste:!1,singleScanQty:1};return t=this._mergeOptions(n,t),e.scannerDetectionData={options:t,vars:{firstCharTime:0,lastCharTime:0,stringWriting:"",callIsScanner:!1,testTimer:!1,longPressTimeStart:0,longPressed:!1}},!0===t.reactToPaste&&e.addEventListener("paste",this._handlePaste),!1!==t.scanButtonKeyCode&&e.addEventListener("keyup",this._handleKeyUp),!0!==t.reactToKeydown&&!1===t.scanButtonKeyCode||e.addEventListener("keydown",this._handleKeyDown),this},detachFrom:function(e){e.scannerDetectionData.options.reactToPaste&&e.removeEventListener("paste",this._handlePaste),!1!==e.scannerDetectionData.options.scanButtonKeyCode&&e.removeEventListener("keyup",this._handleKeyUp),e.removeEventListener("keydown",this._handleKeyDown),e.scannerDetectionData=void 0},getOptions:function(e){return e.scannerDetectionData.options},setOptions:function(e,t){switch(e.scannerDetectionData.options.reactToPaste){case!0:!1===t.reactToPaste&&e.removeEventListener("paste",this._handlePaste);break;case!1:!0===t.reactToPaste&&e.addEventListener("paste",this._handlePaste)}switch(e.scannerDetectionData.options.scanButtonKeyCode){case!1:!1!==t.scanButtonKeyCode&&e.addEventListener("keyup",this._handleKeyUp);break;default:!1===t.scanButtonKeyCode&&e.removeEventListener("keyup",this._handleKeyUp)}return e.scannerDetectionData.options=this._mergeOptions(e.scannerDetectionData.options,t),this._reinitialize(e),this},decodeKeyEvent:function(e){switch(iCode=e.which,!0){case 48<=iCode&&iCode<=90:case 106<=iCode&&iCode<=111:if(void 0!==e.key)return e.key;var t=String.fromCharCode(iCode);switch(e.shiftKey){case!1:t.toLowerCase(t);break;case!0:t.toUpperCase(t)}return t;case 96<=iCode&&iCode<=105:return iCode-96}return""},simulate:function(e,t){var n=e.scannerDetectionData.vars;return n.firstCharTime=0,n.lastCharTime=0,n.stringWriting=t,this._validateScanCode(e),this},_reinitialize:function(e){var t=e.scannerDetectionData.vars;t.firstCharTime=0,t.stringWriting=""},_isFocusOnIgnoredElement:function(e){var t=e.scannerDetectionData.options.ignoreIfFocusOn;if(!t)return!1;var n=document.activeElement;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(!0===n.matches(t[a]))return!0}else if(n.matches(t))return!0;return!1},_validateScanCode:function(e){var t,n=e.scannerDetectionData,a=n.options,i=n.options.singleScanQty,o=n.vars.stringWriting,r=n.vars.firstCharTime,s=n.vars.lastCharTime,c={};switch(!0){case o.length<a.minLength:c={message:"Receieved code is shorter then minimal length"};break;case s-r>o.length*a.avgTimeByChar:c={message:"Receieved code was not entered in time"};break;default:return a.onScan.call(e,o,i),t=new CustomEvent("scan",{detail:{scanCode:o,qty:i}}),e.dispatchEvent(t),d._reinitialize(e),!0}return c.scanCode=o,c.scanDuration=s-r,c.avgTimeByChar=a.avgTimeByChar,c.minLength=a.minLength,a.onScanError.call(e,c),t=new CustomEvent("scanError",{detail:c}),e.dispatchEvent(t),d._reinitialize(e),!1},_mergeOptions:function(e,t){var n,a={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a},_getNormalizedKeyNum:function(e){var t;return window.event?t=e.keyCode:e.which&&(t=e.which),t},_handleKeyDown:function(e){var t=d._getNormalizedKeyNum(e);if(e.which!==t)try{e.which=t}catch(e){console.warn("Cannot normalize KeyboardEvent.which: ",e)}var n=this.scannerDetectionData.options,a=this.scannerDetectionData.vars;if(n.onKeyDetect.call(this,e.which,e),!d._isFocusOnIgnoredElement(this))if(!1===n.scanButtonKeyCode||t!=n.scanButtonKeyCode){switch(n.stopPropagation&&e.stopImmediatePropagation(),n.preventDefault&&e.preventDefault(),!0){case a.firstCharTime&&-1!==n.suffixKeyCodes.indexOf(t):e.preventDefault(),e.stopImmediatePropagation(),this.scannerDetectionData.vars.callIsScanner=!0;break;case!a.firstCharTime&&-1!==n.prefixKeyCodes.indexOf(t):e.preventDefault(),e.stopImmediatePropagation(),a.callIsScanner=!1;break;default:var i=n.keyCodeMapper.call(this,e);if(null===i)return;a.stringWriting+=i,a.callIsScanner=!1}a.firstCharTime||(a.firstCharTime=Date.now()),a.lastCharTime=Date.now(),a.testTimer&&clearTimeout(a.testTimer),a.callIsScanner?(d._validateScanCode(this),a.testTimer=!1):a.testTimer=setTimeout(d._validateScanCode,n.timeBeforeScanTest,this),n.onKeyProcess.call(this,i,e)}else a.longPressed||(a.longPressTimer=setTimeout(n.onScanButtonLongPress,n.scanButtonLongPressTime,this),a.longPressed=!0)},_handlePaste:function(e){if(!d._isFocusOnIgnoredElement(this)){e.preventDefault();var t=(event.clipboardData||window.clipboardData).getData("text");this.scannerDetectionData.options.onPaste.call(this,t,event);var n=this.scannerDetectionData.vars;n.firstCharTime=0,n.lastCharTime=0,n.stringWriting=t,d._validateScanCode(this)}},_handleKeyUp:function(e){d._isFocusOnIgnoredElement(this)||d._getNormalizedKeyNum(e)==this.scannerDetectionData.options.scanButtonKeyCode&&(clearTimeout(this.scannerDetectionData.vars.longPressTimer),this.scannerDetectionData.vars.longPressed=!1)}};return d});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
import { Environment } from "./model";
export const environment: Environment = {
production: false,
showDevModule: true
};
\ No newline at end of file
import { enableProdMode } from "@angular/core";
import { Environment } from "./model";
enableProdMode();
export const environment: Environment = {
production: true,
showDevModule: false
};
\ No newline at end of file
export * from "./environment.dev";
\ No newline at end of file
export interface Environment {
production: boolean;
showDevModule: boolean;
}
\ No newline at end of file
{
"baseURI": "https://qa.careaxes.net/careaxes-qa-api/api/",
"baseWeb": "https://qa.careaxes.net",
"hostingUrl": "https://qa.careaxes.net/",
"maintenance": false,
"env": "QA REACTIVE",
"envTitle": "Long Term Testing",
"version": "1.1",
"signalR": "https://qa.careaxes.net/careaxes-qa-api/Communication"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment