master changes
This commit is contained in:
parent
35bceabaf5
commit
cf7b107426
@ -51,7 +51,8 @@ const sineedgeIdentity = "ap-south-1:9a551eab-97cf-4991-b677-2f9bcd058961";//"ap
|
||||
const lenderIdentity = "ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907";
|
||||
const vendorIdenttiy = "";
|
||||
// serviceProvider
|
||||
const apiurl = "http://ssa.sineedge.com/sparqapi/api/";
|
||||
const apiurl = "http://ssa.sineedge.com/sparqapi/api/";
|
||||
//const apiurl = "http://localhost/sparqapi/api/";
|
||||
|
||||
@Injectable({
|
||||
providedIn: "root"
|
||||
|
||||
@ -39,7 +39,9 @@ const sineedgeIdentity = "ap-south-1:9a551eab-97cf-4991-b677-2f9bcd058961";//"ap
|
||||
const lenderIdentity = "ap-south-1:ca22dabc-db59-4af5-9bb8-265f7ec95907";
|
||||
const vendorIdenttiy = "";
|
||||
// serviceProvider
|
||||
const apiurl = "http://ssa.sineedge.com/sparqapi/api/";
|
||||
const apiurl = "http://ssa.sineedge.com/sparqapi/api/";
|
||||
//const apiurl = "http://localhost/sparqapi/api/";
|
||||
|
||||
export interface Callback {
|
||||
callback(): void;
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
<ng-container matColumnDef="serialno">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||
<mat-cell *matCellDef="let row; let i = index;" class="example-margin"> {{i+1}} </mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<!-- <ng-container matColumnDef="branch_id">
|
||||
|
||||
@ -150,7 +150,6 @@
|
||||
</mat-row>
|
||||
</mat-table>
|
||||
|
||||
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
||||
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
||||
|
||||
</div>
|
||||
|
||||
@ -16,9 +16,8 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;"> Customer Segment </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<h2 mat-dialog-title style="width: 72%;"> Customer Segment </h2>
|
||||
<div style="width: 28%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -16,8 +16,7 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;"> Industry Classification </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<h2 mat-dialog-title style="width: 70%;"> Industry Classification </h2>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
|
||||
@ -16,8 +16,7 @@ fxLayoutGap.xs="0">
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;"> Lender Hierarchy </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<h2 mat-dialog-title style="width: 70%;"> Lender Hierarchy </h2>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
|
||||
@ -14,11 +14,9 @@
|
||||
<div fxFlex="2px"></div>
|
||||
</div>-->
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;">Occupation of Non earning members </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
fxLayout="row">
|
||||
<h2 mat-dialog-title style="width: 85%;">Occupation of Non earning members</h2>
|
||||
<div style="width: 10%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -102,7 +102,7 @@ export class MembersOccupationListComponent implements OnInit {
|
||||
|
||||
this._memberService.getAllMasterData('OCCUPATIONMEMBERS').subscribe(
|
||||
data => {
|
||||
if(data.status === 200){
|
||||
if(data.dataStatus == true){
|
||||
this.noRecordFound = false;
|
||||
this.userData = data.records;
|
||||
this.dataLength = data.records.length;
|
||||
|
||||
@ -6,67 +6,14 @@
|
||||
<div *ngIf="loader">
|
||||
<mat-progress-bar mode="indeterminate" color="accent" class="mb-1"></mat-progress-bar>
|
||||
</div>
|
||||
<!--<div datatable>
|
||||
<table style="border-collapse: collapse">
|
||||
<thead>
|
||||
<th style="text-align: center;">#</th>
|
||||
<th style="text-align: center;">PD Allocation Type Name</th>
|
||||
<th style="text-align: center;">Isactive</th>
|
||||
<th style="text-align: center;">Action</th>
|
||||
</thead>
|
||||
|
||||
<tr *ngIf="PDAllocationTypeList.length === 0" > <td colspan="4" style="text-align: center;"> No Records </td></tr>
|
||||
<tr *ngFor="let PAT of PDAllocationTypeList; let i=index">
|
||||
<td style="text-align: center;">{{i+1}}</td>
|
||||
<td style="text-align: center;">{{PAT.pd_allocation_type_name}}</td>
|
||||
<td style="text-align: center;">{{PAT.isactive}}</td>
|
||||
<td style="text-align: center;">
|
||||
<a (click)="editPDAllocationType(PAT)"><mat-icon>edit</mat-icon></a>
|
||||
<a (click)="deletePDAllocationType(PAT.pd_allocation_type_id)"><mat-icon>delete_outline</mat-icon></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<!--<div>
|
||||
<mat-table [dataSource]="dataSource"> ->
|
||||
-- pd_allocation_type_id: any; pd_allocation_type_name: any; createdon: any; fk_createdby: any; updatedon: any; isactive: any; ->
|
||||
<mat-table [dataSource]="dataSource" matSort>
|
||||
<ng-container matColumnDef="pd_allocation_type_name">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Name </mat-header-cell>
|
||||
<mat-cell *matCellDef="let user"> {{user.pd_allocation_type_name}} </mat-cell>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="pd_allocation_type_id">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> ID </mat-header-cell>
|
||||
<mat-cell *matCellDef="let user"> {{user.pd_allocation_type_id}} </mat-cell>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="isactive">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> isactive </mat-header-cell>
|
||||
<mat-cell *matCellDef="let user"> {{user.isactive}} </mat-cell>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="actions">
|
||||
<mat-header-cell *matHeaderCellDef></mat-header-cell>
|
||||
<mat-cell *matCellDef="let user">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editPDAllocationType(user)"><mat-icon>edit</mat-icon></button>
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deletePDAllocationType(user.PDAllocationType_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||
</mattable>
|
||||
</div>-->
|
||||
<div *ngIf="!noRecordFound" class="example-container mat-elevation-z8">
|
||||
<div *ngIf="!noRecordFound" class="example-container mat-elevation-z8">
|
||||
<div class="example-header">
|
||||
<mat-form-field>
|
||||
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<mat-table [dataSource]="dataSource" matSort >
|
||||
<mat-table [dataSource]="dataSource" matSort >
|
||||
|
||||
<ng-container matColumnDef="serialno">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||
@ -81,36 +28,49 @@
|
||||
<ng-container matColumnDef="pd_allocation_logic">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> PD Allocation Logic </mat-header-cell>
|
||||
<mat-cell *matCellDef="let row"> {{row.pd_allocation_logic}} </mat-cell>
|
||||
<!-- <mat-slide-toggle>Slide me!</mat-slide-toggle> -->
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="isactive">
|
||||
<!--<ng-container matColumnDef="isactive">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||
<mat-cell *matCellDef="let row"><!--{{row.isactive}}->
|
||||
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
</ng-container>-->
|
||||
|
||||
<ng-container matColumnDef="default">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Default </mat-header-cell>
|
||||
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||
<!-- <ng-container matColumnDef="default">
|
||||
|
||||
<mat-cell *matCellDef="let row">
|
||||
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||
</mat-cell>
|
||||
</ng-container> -->
|
||||
|
||||
<ng-container matColumnDef="default">
|
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Default </mat-header-cell>
|
||||
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||
<mat-slide-toggle *ngIf="row.default == 0;else alternative;"
|
||||
class="example-margin"
|
||||
matTooltip="Not a Default"
|
||||
matTooltipPosition="above"
|
||||
checked="false"
|
||||
(change)="defaultPDAllocationType(row.pd_allocation_type_id)"
|
||||
onclick="return confirm('Are you sure?')">
|
||||
</mat-slide-toggle>
|
||||
<ng-template #alternative>
|
||||
<mat-slide-toggle class="example-margin"
|
||||
disabled="true" checked="true"
|
||||
matTooltip="Default"
|
||||
matTooltipPosition="above">
|
||||
</mat-slide-toggle>
|
||||
</ng-template>
|
||||
<!-- <mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template> -->
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<!-- <ng-container matColumnDef="Actions">
|
||||
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||
<mat-cell *matCellDef="let row">
|
||||
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editPDAllocationType(row)"><mat-icon>edit</mat-icon></button>
|
||||
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deletePDAllocationType(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||
</mat-cell>
|
||||
</ng-container> -->
|
||||
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||
</mat-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||
</mat-table>
|
||||
|
||||
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
||||
|
||||
@ -118,11 +118,6 @@
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
.active:hover{
|
||||
color: green;
|
||||
font-size: 20px;
|
||||
}
|
||||
.deactive:hover{
|
||||
color: red;
|
||||
font-size: 20px;
|
||||
.example-margin {
|
||||
margin: 10px;
|
||||
}
|
||||
@ -1,17 +1,17 @@
|
||||
import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
|
||||
import { MatDialog, MatDialogRef, MatDialogConfig,MatPaginator, MatSort,MatTableDataSource } from '@angular/material';
|
||||
|
||||
import { Observable, Subject } from 'rxjs';
|
||||
import { Http, Response } from '@angular/http';
|
||||
import 'rxjs/add/operator/map';
|
||||
|
||||
import { DataSource } from '@angular/cdk/collections';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { of as observableOf, merge } from 'rxjs';
|
||||
|
||||
|
||||
/** Common Imports */
|
||||
import { Component,
|
||||
OnInit,
|
||||
OnDestroy,
|
||||
ViewChild } from '@angular/core';
|
||||
import { MatDialog,
|
||||
MatDialogRef,
|
||||
MatDialogConfig,
|
||||
MatPaginator,
|
||||
MatSort,
|
||||
MatTableDataSource } from '@angular/material';
|
||||
/** Service */
|
||||
import { MastersService } from '../../../../service/masters/masters.service';
|
||||
import { PdAllocationTypeDialogComponent } from '../pd-allocation-type-dialog/pd-allocation-type-dialog.component';
|
||||
/** Model */
|
||||
import { PdAllocationType } from '../../../model/pd';
|
||||
|
||||
|
||||
@ -22,73 +22,38 @@ import { PdAllocationType } from '../../../model/pd';
|
||||
})
|
||||
export class PdAllocationTypeListComponent implements OnInit {
|
||||
|
||||
isPopupOpened = true;
|
||||
//isPopupOpened = true;
|
||||
loader: boolean = false;
|
||||
PDAllocationTypeList: any = [];
|
||||
|
||||
noRecordFound: boolean = false;
|
||||
|
||||
userData = null;
|
||||
|
||||
defaultdatas : any = [];
|
||||
defdatas : any = [];
|
||||
|
||||
|
||||
public dataLength: number;
|
||||
public dataSource = new MatTableDataSource();
|
||||
//displayedColumns = ['SerialNo','PDALLOCATIONTYPE','pdallocationlogic','IsActive'];
|
||||
displayedColumns = ['serialno','pd_allocation_type_name','isactive','pd_allocation_logic','default'];
|
||||
displayedColumns = ['serialno','pd_allocation_type_name','pd_allocation_logic','default'];
|
||||
|
||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||
@ViewChild(MatSort) sort: MatSort;
|
||||
|
||||
|
||||
constructor(private dialog: MatDialog,
|
||||
private _MastersService: MastersService) {
|
||||
this.getPDAllocationType();
|
||||
|
||||
|
||||
constructor(private _MastersService: MastersService) {
|
||||
this.getPDAllocationType();
|
||||
}
|
||||
|
||||
// get PDAllocationTypeList() {
|
||||
// return this._MastersService.getAllPDAllocationType();
|
||||
// }
|
||||
ngOnInit() {}
|
||||
|
||||
|
||||
//dataSource = new UserDataSource(this._MastersService);
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
addPDAllocationType() {
|
||||
this.isPopupOpened = true;
|
||||
const dialogRef = this.dialog.open(PdAllocationTypeDialogComponent, {
|
||||
data: {}
|
||||
});
|
||||
|
||||
|
||||
dialogRef.afterClosed().subscribe(result => {
|
||||
this.getPDAllocationType();
|
||||
this.isPopupOpened = false;
|
||||
});
|
||||
}
|
||||
|
||||
editPDAllocationType(arr: any[]) {
|
||||
this.isPopupOpened = true;
|
||||
//const contact = this._MastersService.getAllPDAllocationType().find(c => c.ID === id);
|
||||
const dialogRef = this.dialog.open(PdAllocationTypeDialogComponent, {
|
||||
data: arr
|
||||
});
|
||||
|
||||
|
||||
dialogRef.afterClosed().subscribe(result => {
|
||||
this.getPDAllocationType();
|
||||
this.isPopupOpened = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//To get data for listing
|
||||
getPDAllocationType() {
|
||||
this._MastersService.getAllMasterData('PDALLOCATIONTYPE').subscribe(
|
||||
data => {
|
||||
if(data.status === 200){
|
||||
if(data.dataStatus == true){
|
||||
this.noRecordFound = false;
|
||||
this.userData = data.records;
|
||||
this.dataLength = data.records.length;
|
||||
@ -100,12 +65,48 @@ export class PdAllocationTypeListComponent implements OnInit {
|
||||
})
|
||||
}
|
||||
|
||||
deletePDAllocationType(id: number) {
|
||||
var PrimaryKeyWithValue ={'pd_allocation_type_id':id};
|
||||
this._MastersService.deleteMasterDetails(PrimaryKeyWithValue,'PDALLOCATIONTYPE')
|
||||
.subscribe( data => { this.getPDAllocationType();})
|
||||
//this._MastersService.deleteMasterDetails('pd_allocation_type_id',id,'PDALLOCATIONTYPE');
|
||||
}
|
||||
/** For Changing Default Value.,
|
||||
* To Set Value Default Value '1' For Only One Record
|
||||
* And Remaining All are set to '0'
|
||||
*/
|
||||
defaultPDAllocationType(id: number){
|
||||
|
||||
var defaultDatas = [];//Empty array to store defaultDatas
|
||||
|
||||
defaultDatas.push({'pd_allocation_type_id':id,'default': 1});
|
||||
|
||||
this._MastersService.getAllMasterData('PDALLOCATIONTYPE').subscribe(
|
||||
data => {
|
||||
if(data.dataStatus == true){
|
||||
let allDefaultDatas = data.records;
|
||||
allDefaultDatas = allDefaultDatas.filter(Datas=>Datas.default == 1 );
|
||||
|
||||
allDefaultDatas.forEach((item, index) => {
|
||||
// console.log('id',item.pd_allocation_type_id);
|
||||
// console.log('value',item.default);
|
||||
let dataChanges = {
|
||||
pd_allocation_type_id:item.pd_allocation_type_id,
|
||||
default:0
|
||||
};
|
||||
defaultDatas.push(dataChanges);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
//console.log(defaultDatas);
|
||||
|
||||
this._MastersService.editMasterDetails(defaultDatas,'PDALLOCATIONTYPE')
|
||||
.subscribe(dataresult=>{
|
||||
if (dataresult.dataStatus == true){
|
||||
//alert("my check");
|
||||
this.getPDAllocationType();
|
||||
}
|
||||
else{
|
||||
alert("SomeThing Wents Wrong Try Again !");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** For Display Tables Pagination And Sorting */
|
||||
ngAfterViewInit() {
|
||||
this.dataSource.paginator = this.paginator;
|
||||
@ -120,19 +121,4 @@ applyFilter(filterValue: string) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class UserDataSource extends DataSource<any> {
|
||||
|
||||
|
||||
constructor(private _bs: MastersService) {
|
||||
super();
|
||||
}
|
||||
|
||||
connect(): Observable<PdAllocationType[]> {
|
||||
//return this.userService.getUser();
|
||||
//return this._bs.getAllPDAllocationType();
|
||||
return this._bs.getAllMasterData('PDALLOCATIONTYPE');
|
||||
}
|
||||
disconnect() {}
|
||||
}
|
||||
|
||||
/**End Of List Component */
|
||||
@ -16,8 +16,8 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;">PD Location Approach </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<h2 mat-dialog-title style="width: 70%;">PD Location Approach </h2>
|
||||
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
|
||||
@ -16,8 +16,7 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;"> Product Details </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<h2 mat-dialog-title style="width: 70%;"> Product Details </h2>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;"> Region </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<h2 mat-dialog-title style="width: 35%;"> Region </h2>
|
||||
<div style="width: 32%;"></div>
|
||||
<div style="width: 33%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;"> Relation Ship </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<h2 mat-dialog-title style="width: 54%;"> Relation Ship </h2>
|
||||
|
||||
<div style="width: 46%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -17,9 +17,8 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;"> Sub Product Details </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<h2 mat-dialog-title style="width: 80%;"> Sub Product Details </h2>
|
||||
<div style="width: 20%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
@ -31,7 +30,6 @@ fxLayoutAlign="center">
|
||||
<div class="form-group">
|
||||
<mat-dialog-content>
|
||||
|
||||
<div class="ml-xs mr-xs">
|
||||
<!-- <mat-form-field>
|
||||
<input matInput placeholder="Pick Up Product Name" [matAutocomplete]="tdAuto" [(ngModel)]="currentState" #modelDir="ngModel" required
|
||||
(ngModelChange)="this.tdStates = filterStates(currentState)" [disabled]="tdDisabled">
|
||||
@ -53,8 +51,7 @@ fxLayoutAlign="center">
|
||||
<input matInput type="text" placeholder="Product Name" required [formControl]="_subProductMasterForm.controls['fk_product_id']">
|
||||
|
||||
</mat-form-field> -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="ml-xs mr-xs">
|
||||
<mat-form-field style="width: 100%">
|
||||
|
||||
@ -16,9 +16,9 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;">Title </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<h2 mat-dialog-title style="width: 33%;">Title </h2>
|
||||
<div style="width: 35%;"></div>
|
||||
<div style="width: 32%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -17,9 +17,9 @@
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 40%;"> Type of activity </h2>
|
||||
<div style="width: 30%;"></div>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<h2 mat-dialog-title style="width: 80%;"> Type of activity </h2>
|
||||
|
||||
<div style="width: 20%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -16,8 +16,7 @@ fxLayoutGap.xs="0">
|
||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="center">
|
||||
<h2 mat-dialog-title style="width: 30%;"> Unit of Measurement </h2>
|
||||
<div style="width: 40%;"></div>
|
||||
<h2 mat-dialog-title style="width: 70%;"> Unit of Measurement </h2>
|
||||
<div style="width: 30%;text-align:right;">
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
|
||||
@ -25,7 +25,8 @@ export interface Master {
|
||||
export class MastersService {
|
||||
|
||||
|
||||
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
|
||||
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
|
||||
// private apiUrl = "http://localhost/sparqapi/api/";
|
||||
|
||||
|
||||
constructor(private _http: HttpClient,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user