Fairoj : Unwanted images removed
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
<div fxLayout="column" fxLayoutAlign="center center" fxFlex="100">
|
<div fxLayout="column" fxLayoutAlign="center center" fxFlex="100">
|
||||||
|
|
||||||
<div class="pt-2" fxFlex="100" fxFlex.lg="80" fxFlex.sm="80" fxFlex.xs="80" fxLayoutAlign="center" fxLayoutGap="5px" class="div_over">
|
<div class="pt-2" fxFlex="100" fxFlex.lg="80" fxFlex.sm="80" fxFlex.xs="100" fxLayoutAlign="center" fxLayoutGap="5px" class="div_over">
|
||||||
<mat-icon [ngClass]="{
|
<mat-icon [ngClass]="{
|
||||||
'success_icon' : status_text == 'success',
|
'success_icon' : status_text == 'success',
|
||||||
'failure_icon' : status_text == 'failure',
|
'failure_icon' : status_text == 'failure',
|
||||||
@ -14,8 +14,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- <div fxLayout="row wrap"> -->
|
<!-- <div fxLayout="row wrap"> -->
|
||||||
<div class="pt-2" fxLayoutAlign="center" fxFlex.sm="100" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
<div class="pt-2" fxLayoutAlign="center" fxFlex.sm="100" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
||||||
<h1 *ngIf="status_text == 'success'">Thank You for your Support</h1><br>
|
<h1 *ngIf="status_text == 'success'" style="text-align: center">Thank You for your Support</h1><br>
|
||||||
<h3 *ngIf="status_text == 'failure'">Sorry there has been a problem in getting payment approval</h3>
|
<h3 *ngIf="status_text == 'failure'" style="text-align: center">Sorry there has been a problem in getting payment approval</h3>
|
||||||
<!-- <p>We have received confirmation of your payment as detailed below</p> -->
|
<!-- <p>We have received confirmation of your payment as detailed below</p> -->
|
||||||
</div>
|
</div>
|
||||||
<div fxLayoutAlign="center" fxFlex.sm="100" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
<div fxLayoutAlign="center" fxFlex.sm="100" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
||||||
|
|||||||
@ -15,6 +15,16 @@
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
@media(max-width:580px){
|
||||||
|
.div_over{
|
||||||
|
margin-top:8%;
|
||||||
|
text-align: center;
|
||||||
|
border: 2px solid rgb(25, 183, 211);
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.failure_text{
|
.failure_text{
|
||||||
font-size:35px;
|
font-size:35px;
|
||||||
color:red;
|
color:red;
|
||||||
|
|||||||
@ -48,10 +48,11 @@
|
|||||||
<mat-card-content style="text-align: center;">
|
<mat-card-content style="text-align: center;">
|
||||||
<h3><strong><span class="amount"><span class="currency-symbol">₹ </span>{{grand_tot_value}}</span></strong></h3><br/>
|
<h3><strong><span class="amount"><span class="currency-symbol">₹ </span>{{grand_tot_value}}</span></strong></h3><br/>
|
||||||
|
|
||||||
<mat-radio-group aria-label="Payment Mode" [(ngModel)]="payment_mode">
|
<mat-radio-group aria-label="Payment Mode" [(ngModel)]="payment_mode" (click)="changeValidation($event)">
|
||||||
<mat-radio-button value="1" >Online</mat-radio-button>
|
<mat-radio-button value="1" >Online</mat-radio-button>
|
||||||
<mat-radio-button value="2">Offline</mat-radio-button>
|
<mat-radio-button value="2">Offline</mat-radio-button>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
@ -111,12 +112,14 @@
|
|||||||
<mat-select placeholder="Payment Mode" formControlName="payment_type">
|
<mat-select placeholder="Payment Mode" formControlName="payment_type">
|
||||||
<mat-option *ngFor="let value of payment_mode_data" [value]="value.id">{{value.name}}</mat-option>
|
<mat-option *ngFor="let value of payment_mode_data" [value]="value.id">{{value.name}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
<mat-error>Please Choose the option </mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<div *ngIf="offlineDetForm.value.payment_type == '1' && offlineDetForm.controls['check_branch_bank']">
|
<div *ngIf="offlineDetForm.value.payment_type == '1' && offlineDetForm.controls['check_branch_bank']">
|
||||||
|
|
||||||
<div fxLayout="row">
|
<div fxLayout="row">
|
||||||
<mat-form-field style="width: 50%;" class="mr-1">
|
<mat-form-field style="width: 50%;" class="mr-1">
|
||||||
<input matInput type="text" formControlName="payment_ref" placeholder="Cheque / DD Number">
|
<input matInput type="text" formControlName="payment_ref" placeholder="Cheque / DD Number">
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width: 50%;">
|
<mat-form-field style="width: 50%;">
|
||||||
<input matInput [matDatepicker]="picker" placeholder="Date" formControlName="check_date">
|
<input matInput [matDatepicker]="picker" placeholder="Date" formControlName="check_date">
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
|
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { FormBuilder, FormGroup, FormControl } from '@angular/forms';
|
import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms';
|
||||||
import { ApiService } from 'app/shared/api.service';
|
import { ApiService } from 'app/shared/api.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -48,7 +48,7 @@ export class PaymentComponent implements OnInit {
|
|||||||
contribute_type: any;
|
contribute_type: any;
|
||||||
contributeKind: FormGroup;
|
contributeKind: FormGroup;
|
||||||
contribute_params: any;
|
contribute_params: any;
|
||||||
payment_mode:any; //1-online 2-offline
|
payment_mode:any=''; //1-online 2-offline
|
||||||
maxDate=new Date()
|
maxDate=new Date()
|
||||||
reqjson=''
|
reqjson=''
|
||||||
action_url=''
|
action_url=''
|
||||||
@ -118,6 +118,10 @@ export class PaymentComponent implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
proceed_for_payment(){
|
proceed_for_payment(){
|
||||||
|
if(this.payment_mode == ''){
|
||||||
|
alert('Please Choose the Payment Option')
|
||||||
|
return;
|
||||||
|
}
|
||||||
let params=this.contribute_params
|
let params=this.contribute_params
|
||||||
if(this.contribute_type == '2'){
|
if(this.contribute_type == '2'){
|
||||||
params.records.mat_delivery_point=this.contributeKind.value.delivery_point
|
params.records.mat_delivery_point=this.contributeKind.value.delivery_point
|
||||||
@ -126,6 +130,10 @@ export class PaymentComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(this.payment_mode == '2'){
|
if(this.payment_mode == '2'){
|
||||||
|
if(this.offlineDetForm.invalid){
|
||||||
|
alert('Please Choose the Payment Mode');
|
||||||
|
return;
|
||||||
|
}
|
||||||
params.records.payment_type=this.offlineDetForm.value.payment_type
|
params.records.payment_type=this.offlineDetForm.value.payment_type
|
||||||
params.records.payment_ref=this.offlineDetForm.value.payment_ref
|
params.records.payment_ref=this.offlineDetForm.value.payment_ref
|
||||||
params.records.payment_date=this.offlineDetForm.value.check_date
|
params.records.payment_date=this.offlineDetForm.value.check_date
|
||||||
@ -199,5 +207,14 @@ export class PaymentComponent implements OnInit {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
changeValidation(value){
|
||||||
|
if(value.target.innerText == 'Offline'){
|
||||||
|
this.offlineDetForm.controls['payment_type'].setValidators(Validators.compose([Validators.required]))
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.offlineDetForm.controls['payment_type'].clearValidators();
|
||||||
|
this.offlineDetForm.controls['payment_type'].updateValueAndValidity();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,8 +147,9 @@
|
|||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<button mat-raised-button class="mb-1" color="primary" (click)="certificateDialog()">Certificate</button>
|
<button mat-raised-button class="mb-1" color="primary" (click)="certificateDialog()">Certificate</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div id="table_element">
|
||||||
<table mat-table #table_element [ngClass]="{'example-container mat-elevation-z8':clientWidth <= 500}"
|
<!--[ngClass]="{'example-container mat-elevation-z8':clientWidth <= 500}"-->
|
||||||
|
<table mat-table class="example-container mat-elevation-z8"
|
||||||
[dataSource]="dataSource" multiTemplateDataRows
|
[dataSource]="dataSource" multiTemplateDataRows
|
||||||
>
|
>
|
||||||
<ng-container matColumnDef="Date">
|
<ng-container matColumnDef="Date">
|
||||||
|
|||||||
@ -98,7 +98,7 @@
|
|||||||
width: 110px;
|
width: 110px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
// margin-right: 20px;
|
margin-right: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-header-row {
|
.mat-header-row {
|
||||||
|
|||||||
@ -33,7 +33,7 @@ export class UserProfileComponent implements OnInit {
|
|||||||
pdf_data_source: any={amount:'',name:'',org_pan:''};
|
pdf_data_source: any={amount:'',name:'',org_pan:''};
|
||||||
slide1: boolean;
|
slide1: boolean;
|
||||||
slide2: boolean;
|
slide2: boolean;
|
||||||
@ViewChild('table_element',{static:false}) table_element : ElementRef
|
@ViewChild('table_element',{static:true}) table_element
|
||||||
clientWidth: any;
|
clientWidth: any;
|
||||||
|
|
||||||
constructor(private apiService:ApiService,private _fb:FormBuilder,private matSnackBar:MatSnackBar,public router:Router,private matDialog:MatDialog) { }
|
constructor(private apiService:ApiService,private _fb:FormBuilder,private matSnackBar:MatSnackBar,public router:Router,private matDialog:MatDialog) { }
|
||||||
@ -56,10 +56,12 @@ export class UserProfileComponent implements OnInit {
|
|||||||
//this.generatePDF()
|
//this.generatePDF()
|
||||||
}
|
}
|
||||||
ngAfterViewInit(){
|
ngAfterViewInit(){
|
||||||
|
setTimeout(()=>{
|
||||||
console.log("table elemnt",this.table_element);
|
console.log("table elemnt",this.table_element);
|
||||||
// this.table_element=this.table_element.nativeElement.clientWidth
|
// this.table_element=this.table_element.nativeElement.clientWidth
|
||||||
this.clientWidth=this.table_element.nativeElement.clientWidth
|
this.clientWidth=this.table_element.nativeElement.clientWidth
|
||||||
console.log("table elemnt",this.clientWidth);
|
console.log("table elemnt",this.clientWidth);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
getProfile(){
|
getProfile(){
|
||||||
this.apiService.getMyProfile().subscribe(res=>{
|
this.apiService.getMyProfile().subscribe(res=>{
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 137 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 323 KiB |
|
Before Width: | Height: | Size: 714 KiB |
|
Before Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 257 KiB |
|
Before Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 195 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 225 KiB |
|
Before Width: | Height: | Size: 231 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 840 B |
|
Before Width: | Height: | Size: 292 KiB |
|
Before Width: | Height: | Size: 618 B |
|
Before Width: | Height: | Size: 177 KiB |
|
Before Width: | Height: | Size: 241 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 286 KiB |
|
Before Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 370 KiB |
|
Before Width: | Height: | Size: 181 KiB |
|
Before Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 195 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |