Fairoj : Unwanted images removed
@ -1,7 +1,7 @@
|
||||
|
||||
<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]="{
|
||||
'success_icon' : status_text == 'success',
|
||||
'failure_icon' : status_text == 'failure',
|
||||
@ -14,8 +14,8 @@
|
||||
</div>
|
||||
<!-- <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">
|
||||
<h1 *ngIf="status_text == 'success'">Thank You for your Support</h1><br>
|
||||
<h3 *ngIf="status_text == 'failure'">Sorry there has been a problem in getting payment approval</h3>
|
||||
<h1 *ngIf="status_text == 'success'" style="text-align: center">Thank You for your Support</h1><br>
|
||||
<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> -->
|
||||
</div>
|
||||
<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;
|
||||
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{
|
||||
font-size:35px;
|
||||
color:red;
|
||||
|
||||
@ -48,10 +48,11 @@
|
||||
<mat-card-content style="text-align: center;">
|
||||
<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="2">Offline</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
|
||||
</mat-card-content>
|
||||
|
||||
</mat-card>
|
||||
@ -111,12 +112,14 @@
|
||||
<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-select>
|
||||
<mat-error>Please Choose the option </mat-error>
|
||||
</mat-form-field>
|
||||
<div *ngIf="offlineDetForm.value.payment_type == '1' && offlineDetForm.controls['check_branch_bank']">
|
||||
|
||||
<div fxLayout="row">
|
||||
<mat-form-field style="width: 50%;" class="mr-1">
|
||||
<input matInput type="text" formControlName="payment_ref" placeholder="Cheque / DD Number">
|
||||
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 50%;">
|
||||
<input matInput [matDatepicker]="picker" placeholder="Date" formControlName="check_date">
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
|
||||
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';
|
||||
|
||||
@Component({
|
||||
@ -48,7 +48,7 @@ export class PaymentComponent implements OnInit {
|
||||
contribute_type: any;
|
||||
contributeKind: FormGroup;
|
||||
contribute_params: any;
|
||||
payment_mode:any; //1-online 2-offline
|
||||
payment_mode:any=''; //1-online 2-offline
|
||||
maxDate=new Date()
|
||||
reqjson=''
|
||||
action_url=''
|
||||
@ -118,6 +118,10 @@ export class PaymentComponent implements OnInit {
|
||||
|
||||
}
|
||||
proceed_for_payment(){
|
||||
if(this.payment_mode == ''){
|
||||
alert('Please Choose the Payment Option')
|
||||
return;
|
||||
}
|
||||
let params=this.contribute_params
|
||||
if(this.contribute_type == '2'){
|
||||
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.offlineDetForm.invalid){
|
||||
alert('Please Choose the Payment Mode');
|
||||
return;
|
||||
}
|
||||
params.records.payment_type=this.offlineDetForm.value.payment_type
|
||||
params.records.payment_ref=this.offlineDetForm.value.payment_ref
|
||||
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;">
|
||||
<button mat-raised-button class="mb-1" color="primary" (click)="certificateDialog()">Certificate</button>
|
||||
</div>
|
||||
<div>
|
||||
<table mat-table #table_element [ngClass]="{'example-container mat-elevation-z8':clientWidth <= 500}"
|
||||
<div id="table_element">
|
||||
<!--[ngClass]="{'example-container mat-elevation-z8':clientWidth <= 500}"-->
|
||||
<table mat-table class="example-container mat-elevation-z8"
|
||||
[dataSource]="dataSource" multiTemplateDataRows
|
||||
>
|
||||
<ng-container matColumnDef="Date">
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
width: 110px;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
// margin-right: 20px;
|
||||
margin-right: 25px;
|
||||
}
|
||||
|
||||
.mat-header-row {
|
||||
|
||||
@ -33,7 +33,7 @@ export class UserProfileComponent implements OnInit {
|
||||
pdf_data_source: any={amount:'',name:'',org_pan:''};
|
||||
slide1: boolean;
|
||||
slide2: boolean;
|
||||
@ViewChild('table_element',{static:false}) table_element : ElementRef
|
||||
@ViewChild('table_element',{static:true}) table_element
|
||||
clientWidth: any;
|
||||
|
||||
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()
|
||||
}
|
||||
ngAfterViewInit(){
|
||||
setTimeout(()=>{
|
||||
console.log("table elemnt",this.table_element);
|
||||
// this.table_element=this.table_element.nativeElement.clientWidth
|
||||
this.clientWidth=this.table_element.nativeElement.clientWidth
|
||||
console.log("table elemnt",this.clientWidth);
|
||||
})
|
||||
}
|
||||
getProfile(){
|
||||
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 |