Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row">
- <div class="col-md-12 grid-margin">
- <div class="row">
- <div class="col-12">
- <div class="card">
- <div class="card-body" style="padding-bottom:0px">
- <h4 class="card-title" style="font-size: 20px">Asset ECL Calculation</h4><br>
- <form class="form-sample" [formGroup]="filteringForm">
- <div class="row">
- <div class="col-md-12">
- <div class="form-group row">
- </div>
- <!-- <form class="forms-sample" [formGroup]="editCalcForm">
- <div class="form-row">
- <div class="col-md-2 col-lg-2 col-sm-2">
- <label style="font-size: 11px">Asset Type</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="assetTypeF" id="assetTypeF" name="assetTypeF" placeholder="Asset Type" >
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.assetTypeF.invalid && editCalcForm.controls.assetTypeF.touched">Asset Type cannot be empty</span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Asset Name</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="assetNameF" id="assetNameF" name="assetNameF" placeholder="Asset Name" >
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.assetNameF.invalid && editCalcForm.controls.assetNameF.touched">Asset Name cannot be empty</span>
- </div>
- <div class="col-md-2 col-lg-2 col-sm-2">
- <label style="font-size: 11px">Rating</label>
- <select formControlName="ratingF" style="min-width: 100%" id="ratingF" name="ratingF" class="btn btn-outline-secondary dropdown-toggle" type="text" >
- <option *ngFor="let lrating of listRatingName" [value]="lrating">{{lrating}}</option>
- </select>
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.ratingF.invalid && editCalcForm.controls.ratingF.touched">Rating cannot be empty</span>
- </div>
- <div class="col-md-2 col-lg-2 col-sm-2">
- <label style="font-size: 11px">EIR Rate (%)</label>
- <input type="text" class="form-control" style="margin-bottom:10px;width: 95%" formControlName="eirRateF" id="eirRateF" name="eirRateF" placeholder="EIR Rate" >
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.eirRateF.invalid && editCalcForm.controls.eirRateF.touched">EIR Rate must be numeric & cannot be empty </span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Nominal</label>
- <input type="text"class="form-control" style="margin-bottom:10px;width: 95%" formControlName="nominalF" id="nominalF" name="nominalF" placeholder="Nominal" >
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.nominalF.invalid && editCalcForm.controls.nominalF.touched">Nominal must be numeric & cannot be empty </span>
- </div>
- </div>
- <div class="form-row">
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Buy Date</label>
- <div id="datepicker-popup1" class= "input-group date datepicker btn-block" style="max-width:100%">
- <input type="text" class="form-control" formControlName="buyDate" id="buyDate" name="buyDate" placeholder="Buy Date" >
- <span class="input-group-addon input-group-append border-left" style="text-align: center">
- <span class="mdi mdi-calendar input-group-text" style="padding:5px"></span>
- </span>
- </div>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Maturity Date</label>
- <div id="datepicker-popup2" class= "input-group date datepicker btn-block" style="max-width:100%">
- <input type="text" class="form-control" formControlName="maturityDate" id="maturityDate" name="maturityDate" placeholder="Maturity Date" >
- <span class="input-group-addon input-group-append border-left" style="text-align: center">
- <span class="mdi mdi-calendar input-group-text" style="padding:5px"></span>
- </span>
- </div>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Rating Type</label>
- <select formControlName="ratingLGD" style="min-width: 100%" id="ratingLGD" name="ratingLGD" class="btn btn-outline-secondary dropdown-toggle" type="text" >
- <option *ngFor="let trating of listRatingNameLGD" [value]="trating">{{trating}}</option>
- </select>
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.ratingLGD.invalid && editCalcForm.controls.ratingLGD.touched">Rating type cannot be empty</span>
- </div>
- </div><br>
- <div class="form row">
- <div class="col">
- <button (click)="generateExcel()" type="button" class="btn btn-icons btn-inverse-primary" style="margin-right:8px;float:right;margin-bottom:30px;">
- <i class="mdi mdi-printer"></i>
- </button>
- <button type="button" class="btn btn-icons btn-inverse-info" style="margin-right:10px;float:right" data-toggle="modal" data-target="#exampleModal-8">
- <i class="mdi mdi-upload"></i>
- </button>
- <button class="btn btn-icons btn-inverse-success" style="min-width:120px;float: right; margin-right: 10px;margin-bottom:15px; " (click)="goCalculateValue()" type="submit">Calculate</button>
- <button class="btn btn-icons btn-inverse-warning" style="min-width:120px;float: right; margin-bottom: 0px; margin-right: 10px;margin-bottom:15px;" data-toggle="modal" data-target="#exampleModal-5" type="submit">Add</button>
- </div>
- </div>
- </form> -->
- <div class="form-group row">
- <label class="col col-form-label">Search by </label><br>
- </div>
- <div class="form-group row">
- <div class="col">
- <select class="btn btn-secondary dropdown-toggle btn-block" style="min-width:100%" formControlName="currencyFiltering" style="margin-bottom: 15px">
- <option value="">Currency</option>
- <option *ngFor="let currencyFil of currencyFilter" [value]="currencyFil">{{currencyFil}}</option>
- </select>
- </div>
- <div class="col">
- <select class="btn btn-secondary dropdown-toggle btn-block" style="min-width:100%" formControlName="ratingFiltering" style="margin-bottom: 15px">
- <option value="">Rating</option>
- <option *ngFor="let ratingFil of ratingFilter" [value]="ratingFil">{{ratingFil}}</option>
- </select>
- </div>
- <div class="col">
- <select class="btn btn-secondary dropdown-toggle btn-block" style="min-width:100%" formControlName="typeFiltering" style="margin-bottom: 15px">
- <option value="">Type</option>
- <option *ngFor="let typeFil of typeECLFilter" [value]="typeFil">{{typeFil}}</option>
- </select>
- </div>
- <div class="col">
- <select class="btn btn-secondary dropdown-toggle btn-block" style="min-width:100%" formControlName="codeTypeFiltering" style="margin-bottom: 15px">
- <option value="">Code Type</option>
- <option *ngFor="let codeTypeFil of codeTypeFilter" [value]="codeTypeFil">{{codeTypeFil}}</option>
- </select>
- </div>
- <div class="col">
- <select class="btn btn-secondary dropdown-toggle btn-block" style="min-width:100%" formControlName="assetTypeFiltering" style="margin-bottom: 15px">
- <option value="">Asset Type</option>
- <option *ngFor="let assetTypeFil of assetTypeFilter" [value]="assetTypeFil">{{assetTypeFil}}</option>
- </select>
- </div>
- <div class="col">
- <select class="btn btn-secondary dropdown-toggle btn-block" style="min-width:100%" formControlName="lembagaFiltering" style="margin-bottom: 15px">
- <option value="">Lembaga</option>
- <option *ngFor="let lembagaFil of lembagaFilter" [value]="lembagaFil">{{lembagaFil}}</option>
- </select>
- </div>
- </div>
- <!-- <div class="col">
- <div id="datepicker-popup1" class= "input-group date datepicker btn-block" style="min-width:100%">
- <input type="text" class="form-control" id="periodeStart" name="periodeStart" placeholder="Start Period" formControlName="periodeStart">
- <span class="input-group-addon input-group-append border-left" style="text-align: center">
- <span class="mdi mdi-calendar input-group-text" style="padding: 5px"></span>
- </span>
- </div>
- </div>
- <div class="col">
- <div id="datepicker-popup2" class= "input-group date datepicker btn-block" style="min-width:100%">
- <input type="text" class="form-control" id="periodeEnd" name="periodeEnd" placeholder="End Period" formControlName="periodeEnd">
- <span class="input-group-addon input-group-append border-left" style="text-align: center">
- <span class="mdi mdi-calendar input-group-text" style="padding: 5px"></span>
- </span>
- </div>
- </div>
- </div> -->
- <div class="form row">
- <div class="col">
- <button (click)="generateReportExcel()" type="button" class="btn btn-icons btn-inverse-primary" style="margin-right:8px;float:right;margin-bottom:30px;">
- <i class="mdi mdi-printer"></i>
- </button>
- <button type="button" class="btn btn-icons btn-inverse-info" style="margin-right:10px;float:right" data-toggle="modal" data-target="#exampleModal-8">
- <i class="mdi mdi-upload"></i>
- </button>
- <button class="btn btn-icons btn-inverse-success" style="min-width:120px;float: right; margin-right: 10px;margin-bottom:15px; " (click)="goCalculateValue()" type="submit">Calculate</button>
- <button class="btn btn-icons btn-inverse-success" style="min-width:120px;float: right; margin-right: 10px;margin-bottom:15px; " data-toggle="modal" data-target="#exampleModal-5" type="submit" hidden="true">Calculate</button>
- <!-- <button class="btn btn-icons btn-inverse-success" style="min-width:120px;float: right; margin-right: 10px;margin-bottom:15px; " (click)="goCalculateValue()" type="submit">Calculate</button> -->
- <button class="btn btn-icons btn-inverse-primary" style="min-width:120px;float: right; margin-bottom: 0px; margin-right: 10px;margin-bottom:15px;" (click)="markUntouched()" data-toggle="modal" data-target="#exampleModal-6" type="submit">Add</button>
- <button class="btn btn-icons btn-inverse-warning" style="min-width:120px;float: right; margin-bottom: 0px; margin-right: 10px;margin-bottom:15px;" (click)="CallingDropdown()" type="submit">Search</button>
- </div>
- </div>
- </div>
- </div>
- <!-- </div> -->
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-12 grid-margin">
- <div class="card">
- <div class="card-body">
- <div style="text-align: center; min-width: 100%" *ngIf="loadingBar=='true'">
- <div class="col-md-12 col-sm-6 grid-margin stretch-card">
- <div class="loader-demo-box" >
- <div class="dot-opacity-loader">
- <span></span>
- <span></span>
- <span></span>
- <span></span>
- </div>
- </div>
- </div>
- </div>
- <ng-container *ngIf=" loadingBar=='false' && dataNotFound=='true'">
- <table id="user-table" class="table table-striped" style="font-size: 18px; text-align: center">
- <tbody>
- <tr>
- <h4 class="card-title" style="font-size: 20px;text-align: center;">No Data to Display</h4>
- </tr>
- </tbody>
- </table>
- </ng-container>
- <form [formGroup]="updateForm" (ngSubmit)="reverbUpdateData()">
- <div id="innerdiv">
- <table *ngIf="id.length>0 && loadingBar=='false'" id="user-table" class="table table-striped" style="font-size: 18px; text-align: center" >
- <thead>
- <tr>
- <th>Type</th>
- <th>Code Type</th>
- <!-- <th>Name</th> -->
- <th>Asset Type</th>
- <th>Rekening</th>
- <th>Asset Name</th>
- <th>Loan Type</th>
- <th>Lembaga</th>
- <th>Currency</th>
- <th>Rating</th>
- <!-- <th>Rating LGD</th> -->
- <th>Buy Date</th>
- <th>Maturity Date</th>
- <th>EIR Rate</th>
- <th>Nominal</th>
- <th>Kurs</th>
- <th>Nominal Equivalen</th>
- <th>COA Debet</th>
- <th>COA Kredit</th>
- <!-- <th>Period</th> -->
- <!-- <th>Calculate Type</th> -->
- <!-- <th>Calculate Type LGD</th> -->
- <!-- <th>MTM</th>
- <th>Fair Value</th> -->
- <th>CCF</th>
- <th>PD</th>
- <th>LGD</th>
- <th>Discount Factor</th>
- <th>Credit Loss</th>
- <th class="headcol" style="border: 0px; background-color:#093652 ;width: 112px; height: 49px">
- <label class="table table-striped" style="font-size: 14px; text-align: center;background-color:#093652; margin-right: 30px">Action</label>
- </th>
- </tr>
- </thead>
- <tbody>
- <tr *ngFor="let listRate of listCalculation | paginate: { itemsPerPage: 10, currentPage: p, totalItems: totalRec };let i = index">
- <!-- <td >{{listRate.id}}</td> -->
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.type}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <!-- <input type="text" class="typeahead" formControlName="typeUpdate" id="typeUpdate" name="typeUpdate" placeholder="Type"> -->
- <select class="form-control" formControlName="typeUpdate" id="typeUpdate" name="typeUpdate" (change)="getCodeTypeUpdate($event.target.value)">
- <option value="null">Select Type</option>
- <option *ngFor="let ct of typeFilter" [value]="ct">{{ct}}</option>
- </select>
- <span style="font-size:10px;color:#ed4a4a; float: left" *ngIf="(updateForm.controls.typeUpdate.invalid && updateForm.controls.typeUpdate.touched) || (updateForm.controls.typeUpdate.value==null && updateForm.controls.typeUpdate.touched) && listRate.id==code">Type cannot be empty</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.codeType}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <!-- <input type="text" class="typeahead" formControlName="codeTypeUpdate" id="codeTypeUpdate" name="codeTypeUpdate"> -->
- <select class="form-control" formControlName="codeTypeUpdate" style="min-width: 90%" id="codeTypeUpdate" name="codeTypeUpdate">
- <option value="null">Select Code Type</option>
- <option *ngFor="let ct of codeTypeFilUp" [value]="ct.assetCode">{{ct.assetCode}}</option>
- </select>
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="(updateForm.controls.codeTypeUpdate.invalid && updateForm.controls.codeTypeUpdate.touched) || (updateForm.controls.codeTypeUpdate.touched && updateForm.controls.codeTypeUpdate.value=='null') && listRate.id==code">Code Type cannot be empty</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.assetType}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <!-- <input type="text" class="typeahead" formControlName="assetTypeUpdate" id="assetTypeUpdate" name="assetTypeUpdate"> -->
- <select class="typeahead" formControlName="assetTypeUpdate" id="assetTypeUpdate" name="assetTypeUpdate" >
- <option value="">Select Asset Type</option>
- <option value="AC">AC</option>
- <option value="FVOCI">FVOCI</option>
- <option value="FVPL">FVPL</option>
- </select>
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.assetTypeUpdate.invalid && updateForm.controls.assetTypeUpdate.touched && listRate.id==code">Asset type cannot be empty</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.rekening}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="rekeningUpdate" id="rekeningUpdate" name="rekeningUpdate">
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.rekeningUpdate.invalid && updateForm.controls.rekeningUpdate.touched && listRate.id==code">Rekening cannot be empty</span>
- </div>
- </td>
- <!-- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.name}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="nameUpdate" id="nameUpdate" name="nameUpdate">
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.nameUpdate.invalid && updateForm.controls.nameUpdate.touched && listRate.id==code">Name cannot be empty</span>
- </div>
- </td> -->
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.assetName}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="assetNameUpdate" id="assetNameUpdate" name="assetNameUpdate">
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.assetNameUpdate.invalid && updateForm.controls.assetNameUpdate.touched && listRate.id==code">Asset name cannot be empty</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.loanType}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="loanTypeUpdate" id="loanTypeUpdate" name="loanTypeUpdate">
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.loanTypeUpdate.invalid && updateForm.controls.loanTypeUpdate.touched && listRate.id==code">Loan Type cannot be empty</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.lembaga}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <select class="typeahead" formControlName="lembagaUpdate" id="lembagaUpdate" name="lembagaUpdate" (change)="onChangeLembagaUpdate($event.target.value)">
- <option value="null">Select Lembaga</option>
- <option *ngFor="let lm of listLembaga">{{lm}}</option>
- </select>
- <!-- <input type="text" class="typeahead" formControlName="lembagaUpdate" id="lembagaUpdate" name="lembagaUpdate"> -->
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.lembagaUpdate.invalid && updateForm.controls.lembagaUpdate.touched && listRate.id==code">Lembaga cannot be empty</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.currency}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <select class="typeahead" formControlName="currencyUpdate" id="currencyUpdate" name="currencyUpdate">
- <option value="null">Select Currency</option>
- <option *ngFor="let cr of listCurrencyDist">{{cr}}</option>
- </select>
- <!-- <input type="text" class="typeahead" formControlName="currencyUpdate" id="currencyUpdate" name="currencyUpdate"> -->
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="(updateForm.controls.currencyUpdate.invalid && updateForm.controls.currencyUpdate.touched) || (updateForm.controls.currencyUpdate.dirty && updateForm.controls.currencyUpdate.invalid) && listRate.id==code">Currency cannot be empty</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.rating}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <select class="typeahead" formControlName="ratingUpdate" id="ratingUpdate" name="ratingUpdate" >
- <option value="">Select Rating</option>
- <option *ngFor="let Nrating of listRatingName; let i = index" [value]="Nrating">{{Nrating}}</option>
- </select>
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.ratingUpdate.invalid && updateForm.controls.ratingUpdate.touched && listRate.id==code">Rating cannot be empty</span>
- </div>
- </td>
- <!-- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.ratingLGD}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <select class="typeahead" formControlName="ratingLGDUpdate" id="ratingLGDUpdate" name="ratingLGDUpdate" >
- <option value="">Select Rating LGD</option>
- <option *ngFor="let Trating of listRatingNameLGD; let i = index" [value]="Trating">{{Trating}}</option>
- </select>
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.ratingLGDUpdate.invalid && updateForm.controls.ratingLGDUpdate.touched && listRate.id==code">Rating LGD cannot be empty</span>
- </div>
- </td> -->
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.buyDate}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code" style="position: relative">
- <div id="datepicker-popup5" class= "input-group date datepicker btn-block" style="min-width: 60px">
- <input type="date" class="typeahead" formControlName="buyDateUpdate" id="buyDateUpdate" name="buyDateUpdate" placeholder="Buy Date" >
- <!-- <span span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.buyDateUpdate.invalid && updateForm.controls.buyDateUpdate.touched && listRate.id==code">Buy date cannot be empty</span> -->
- <!-- <span class="input-group-addon input-group-append border-left" style="text-align: center"> -->
- <!-- <span class="mdi mdi-calendar input-group-text" style="padding:5px"></span> -->
- <!-- </span> -->
- </div>
- </td>
- <!-- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div id="datepicker-popup3" class= "input-group date datepicker btn-block" style="min-width: 60px">
- <input type="text" class="form-control" formControlName="buyDateUpdate" id="buyDateUpdate" name="buyDateUpdate">
- <span class="input-group-addon input-group-append border-left" style="text-align: center">
- <span class="mdi mdi-calendar input-group-text" style="padding:5px"></span>
- </span>
- <span span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.buyDateUpdate.invalid && updateForm.controls.buyDateUpdate.touched && listRate.id==code">Buy date cannot be empty</span>
- </div>
- </td> -->
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.maturityDate}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div id="datepicker-popup4" class= "input-group date datepicker btn-block" style="min-width: 60px">
- <input type="date" class="typeahead" formControlName="maturityDateUpdate" id="maturityDateUpdate" name="maturityDateUpdate" placeholder="Maturity Date">
- <!-- <span class="input-group-addon input-group-append border-left" style="text-align: center">
- <span class="mdi mdi-calendar input-group-text" style="padding:5px"></span>
- </span> -->
- <!-- <span span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.maturityDateUpdate.invalid && updateForm.controls.maturityDateUpdate.touched && listRate.id==code">Maturity date cannot be empty</span> -->
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.eirRate}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="number" class="typeahead" formControlName="eirRateUpdate" id="eirRateUpdate" name="eirRateUpdate">
- <span span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.eirRateUpdate.invalid && updateForm.controls.eirRateUpdate.touched && listRate.id==code">EIR rate must be filled with numeric digits</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.nominal | number: '1.0-10'}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="nominalUpdate" id="nominalUpdate" name="nominalUpdate" (change)="onChangeNominalUpdate($event.target.value)">
- <span span style="font-size:9px;color:#ed4a4a;" *ngIf="updateForm.controls.nominalUpdate.invalid && updateForm.controls.nominalUpdate.touched && listRate.id==code">Nominal must be filled with numeric digits</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.kurs}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="kursUpdate" id="kursUpdate" name="kursUpdate" (change)="onChangeKursUpdate($event.target.value)">
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.kursUpdate.invalid && updateForm.controls.kursUpdate.touched && listRate.id==code">Kurs must be filled with numeric digits</span>
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.nominalEqivalen}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="nominalEqivalenUpdate" id="nominalEqivalenUpdate" name="nominalEqivalenUpdate" readonly>
- <!-- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.nominalEqivalenUpdate.invalid && updateForm.controls.nominalEqivalenUpdate.touched && listRate.id==code">Nominal Eqivalen must be filled with numeric digits</span> -->
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.coaDebet}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="coaDebetUpdate" id="coaDebetUpdate" name="coaDebetUpdate" >
- <!-- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.nominalEqivalenUpdate.invalid && updateForm.controls.nominalEqivalenUpdate.touched && listRate.id==code">Nominal Eqivalen must be filled with numeric digits</span> -->
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.coaKredit}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="coaKreditUpdate" id="coaKreditUpdate" name="coaKreditUpdate" >
- <!-- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.nominalEqivalenUpdate.invalid && updateForm.controls.nominalEqivalenUpdate.touched && listRate.id==code">Nominal Eqivalen must be filled with numeric digits</span> -->
- </div>
- </td>
- <!-- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.period}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="periodUpdate" id="periodUpdate" name="periodUpdate">
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.periodUpdate.invalid && updateForm.controls.periodUpdate.touched && listRate.id==code">Period cannot be empty</span>
- </div>
- </td> -->
- <!-- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.calculateType}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="calculateTypeUpdate" id="calculateTypeUpdate" name="calculateTypeUpdate">
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.calculateTypeUpdate.invalid && updateForm.controls.calculateTypeUpdate.touched && listRate.id==code">Calculate Type cannot be empty</span>
- </div>
- </td> -->
- <!-- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.calculateType}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <select class="typeahead" formControlName="caltype" id="caltype" name="caltype" >
- <option value="PD1YEAR">PD 1 YEAR</option>
- <option value="LIFETIME">LIFETIME</option>
- </select>
- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.caltype.invalid && updateForm.controls.caltype.touched && listRate.id==code">Rating cannot be empty</span>
- </div>
- </td> -->
- <!-- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div id="datepicker-popup4" class= "input-group date datepicker btn-block" style="min-width:100%">
- <input type="date" class="form-control" formControlName="maturityDateUpdate" id="maturityDateUpdate" name="maturityDateUpdate" placeholder="Maturity Date" >
- </div>
- </td> -->
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.ccf}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="ccfUpdate" id="ccfUpdate" name="ccfUpdate" readonly>
- <!-- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.ccfUpdate.invalid && updateForm.controls.ccfUpdate.touched && listRate.id==code">CCF cannot be empty</span> -->
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.PD}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="PDUpdate" id="PDUpdate" name="PDUpdate" readonly>
- <!-- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.PDUpdate.invalid && updateForm.controls.PDUpdate.touched && listRate.id==code">PD cannot be empty</span> -->
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.LGD}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="LGDUpdate" id="LGDUpdate" name="LGDUpdate" readonly>
- <!-- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.LGDUpdate.invalid && updateForm.controls.LGDUpdate.touched && listRate.id==code">LGD cannot be empty</span> -->
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.discountFactor}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="discountFactorUpdate" id="discountFactorUpdate" name="discountFactorUpdate" readonly>
- <!-- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.ccfUpdate.invalid && updateForm.controls.ccfUpdate.touched && listRate.id==code">CCF cannot be empty</span> -->
- </div>
- </td>
- <td *ngIf="updateCounter == 0 || listRate.id != code">
- {{listRate.creditLoss | number: '1.0-10'}}
- </td>
- <td *ngIf="updateCounter==1 && listRate.id == code">
- <div class="ui fluid input" style="min-width: 60px">
- <input type="text" class="typeahead" formControlName="creditLossUpdate" id="creditLossUpdate" name="creditLossUpdate" readonly>
- <!-- <span style="font-size:10px;color:#ed4a4a;" *ngIf="updateForm.controls.ccfUpdate.invalid && updateForm.controls.ccfUpdate.touched && listRate.id==code">CCF cannot be empty</span> -->
- </div>
- </td>
- <td class="headcol">
- <button class="btn btn-icons btn-inverse-primary" (click)="updateData(listRate.id,i)" style=" cursor: pointer; margin-top: -15px" *ngIf="updateCounter== 0 || listRate.id != code">
- <i class="mdi mdi-account-edit" ></i>
- </button>
- <button class="btn btn-icons btn-inverse-danger" (click)=open(listRate.id,listRate.assetName) style=" cursor: pointer; margin-top: -15px" data-toggle="modal" data-target="#exampleModal-3" *ngIf="updateCounter== 0 || listRate.id != code">
- <i class="mdi mdi-delete" ></i>
- </button>
- <i *ngIf="updateCounter== 1 && listRate.id == code" (click)="updateDetailCreditLost(listRate.id,i)" class="mdi mdi-checkbox-marked-circle-outline" style="color:green;cursor: pointer;margin-right:20px"></i>
- <i *ngIf="updateCounter== 1 && listRate.id == code" class="mdi mdi-minus-circle-outline" style="color:darkred;cursor: pointer" (click)="reverbUpdateData()"></i>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <br>
- <pagination-controls *ngIf="id.length>0" class="my-pagination" style="font-family: Arial; margin-top: 20px"(pageChange)="p = $event" align="right">
- </pagination-controls>
- </form>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="exampleModal-3" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel-3" aria-hidden="true">
- <div class="modal-dialog modal-sm" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel-3">Delete Asset</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- <p>Are you sure want to delete asset: {{deletename}} ?</p>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-danger" (click)="deleteCalculation(deletecalc)" data-dismiss="modal">Delete</button>
- <button type="button" class="btn btn-light" data-dismiss="modal">Cancel</button>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="exampleModal-8" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel-8" aria-hidden="true">
- <div class="modal-dialog modal-sm" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel-5">Upload Data</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- <p> Please download the latest excel format before upload the new one.<br>
- <a download="creditLoss" target="_blank" href="{{baseURL}}assets/CREDIT_LOSS.xlsx">
- Click here to download excel
- </a>
- <!-- You can download it<a (click)="downloadCsv()" style="cursor: pointer; color: rgb(65, 170, 214); text-decoration: underline"> here</a> -->
- </p>
- <form [formGroup]="uploadFileForm">
- <label style="font-size:14px">File Upload</label>
- <input style="padding-top:8px" type="file" accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" class="form-control" formControlName="uploadFile" id="uploadFile" (change)="onchangeUpload($event)" name="uploadFile" placeholder="uploadFile">
- </form>
- </div>
- <div class="modal-footer">
- <button type="submit" class="btn btn-success" data-dismiss="modal" (click)="uploadFileToActivity()">Submit</button>
- <button type="button" class="btn btn-light" data-dismiss="modal">Cancel</button>
- </div>
- </div>
- </div>
- </div>
- <!-- MODAL FOR ADD NEW ASSET -->
- <div class="modal fade" id="exampleModal-6" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel-6" aria-hidden="true" >
- <div class="modal-dialog modal-lg" >
- <div class="modal-content" style="min-width: 500px;">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel-6">Add New Asset</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <!-- form start -->
- <div class="modal-body">
- <div class="card-body">
- <form class="forms-sample" [formGroup]="editCalcForm">
- <div class="form-row">
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Type</label>
- <!-- <input type="text" class="form-control" style="width: 95%" formControlName="type" id="type" name="type" placeholder="Type" > -->
- <select class="form-control" style="max-width: 95%;" formControlName="type" id="type" name="type" (change)="getCodeType($event.target.value)">
- <option value="null">Select Type</option>
- <option *ngFor="let ct of typeFilter" [value]="ct">{{ct}}</option>
- </select>
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="(editCalcForm.controls.type.invalid && editCalcForm.controls.type.touched) || (editCalcForm.controls.type.value=='' && editCalcForm.controls.type.touched)">Type cannot be empty</span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Code Type</label>
- <!-- <input type="text" class="form-control" style="width: 95%" formControlName="codeType" id="codeType" name="codeType" placeholder="Code Type" > -->
- <select class="form-control" style="max-width: 95%;" formControlName="codeType" id="codeType" name="codeType">
- <option value="null">Select Code Type</option>
- <option *ngFor="let ct of codeTypeFil" [value]="ct.assetCode">{{ct.assetCode}}</option>
- </select>
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="(editCalcForm.controls.codeType.invalid && editCalcForm.controls.codeType.touched) || editCalcForm.controls.codeType.value =='null' && editCalcForm.controls.codeType.touched ">Code Type cannot be empty</span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Asset Type</label>
- <select formControlName="assetTypeF" style="max-width: 95%" class="form-control" id="assetTypeF" name="assetTypeF" >
- <option value="null">Select Asset Type</option>
- <option value="AC">AC</option>
- <option value="FVOCI">FVOCI</option>
- <option value="FVPL">FVPL</option>
- <!-- <option *ngFor="let Nrating of listRatingName; let i = index" [value]="Nrating">{{Nrating}}</option> -->
- </select>
- <!-- <input type="text" class="form-control" style="width: 95%" formControlName="assetTypeF" id="assetTypeF" name="assetTypeF" placeholder="Asset Type" > -->
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.assetTypeF.invalid && editCalcForm.controls.assetTypeF.touched">Asset Type cannot be empty </span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Rekening</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="rekening" id="rekening" name="rekening" placeholder="Rekening" >
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.rekening.invalid && editCalcForm.controls.rekening.touched">Rekening cannot be empty</span>
- </div>
- <!-- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Name</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="name" id="name" name="name" placeholder="Name" >
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.name.invalid && editCalcForm.controls.name.touched">Name cannot be empty</span>
- </div> -->
- </div>
- <div class="form-row">
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Asset Name</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="assetNameF" id="assetNameF" name="assetNameF" placeholder="Asset Name" >
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.assetNameF.invalid && editCalcForm.controls.assetNameF.touched">Asset Name cannot be empty</span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Loan Type</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="loanType" id="loanType" name="loanType" placeholder="Loan Type" >
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.loanType.invalid && editCalcForm.controls.loanType.touched">Loan Type cannot be empty </span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Lembaga</label>
- <select class="typeahead" formControlName="lembaga" style="max-width: 95%;" id="lembaga" name="lembaga" (change)="onChangeLembaga($event.target.value)">
- <option value="null">Select Lembaga</option>
- <option *ngFor="let lm of listLembaga">{{lm}}</option>
- </select>
- <!-- <input type="text" class="form-control" style="width: 95%" formControlName="lembaga" id="lembaga" name="lembaga" placeholder="Lembaga" > -->
- <!-- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.lembaga.invalid && editCalcForm.controls.lembaga.touched">Lembaga cannot be empty</span> -->
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Currency</label>
- <select class="typeahead" style="max-width: 95%;" formControlName="currency" id="currency" name="currency">
- <option value="null">Select Currency</option>
- <option *ngFor="let cr of listCurrencyDist">{{cr}}</option>
- </select>
- <!-- <input type="text" class="form-control" style="width: 95%" formControlName="currency" id="currency" name="currency" placeholder="Currency" > -->
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.currency.invalid && editCalcForm.controls.currency.touched">Currency must be filled with 3 alphabet letter</span>
- </div>
- </div>
- <div class="form-row">
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Rating</label>
- <select formControlName="ratingF" style="max-width: 95%" id="ratingF" name="ratingF" class="form-control" type="text" >
- <option value="null">Select Rating</option>
- <option *ngFor="let lrating of listRatingName" [value]="lrating">{{lrating}}</option>
- </select>
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="(editCalcForm.controls.ratingF.invalid && editCalcForm.controls.ratingF.touched) || (editCalcForm.controls.ratingF.value=='null' && editCalcForm.controls.ratingF.touched) ">Rating cannot be empty</span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Buy Date</label>
- <div id="datepicker-popup1" class= "input-group date datepicker btn-block" style="max-width:95%">
- <input type="text" class="form-control" formControlName="buyDate" id="buyDate" name="buyDate" placeholder="Buy Date" >
- <span class="input-group-addon input-group-append border-left" style="text-align: center">
- <span class="mdi mdi-calendar input-group-text" style="padding:5px"></span>
- </span>
- </div>
- <!-- <span span style="font-size:10px;color:#ed4a4a;" *ngIf="editCalcForm.controls.buyDate.invalid && editCalcForm.controls.buyDate.touched">Buy date cannot be empty</span> -->
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Maturity Date</label>
- <div id="datepicker-popup2" class= "input-group date datepicker btn-block" style="max-width:95%">
- <input type="text" class="form-control" formControlName="maturityDate" id="maturityDate" name="maturityDate" placeholder="Maturity Date" >
- <span class="input-group-addon input-group-append border-left" style="text-align: center">
- <span class="mdi mdi-calendar input-group-text" style="padding:5px"></span>
- </span>
- </div>
- <!-- <span span style="font-size:10px;color:#ed4a4a;" *ngIf="editCalcForm.controls.maturityDate.invalid && editCalcForm.controls.maturityDate.touched">Maturity date cannot be empty</span> -->
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">EIR Rate (%)</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="eirRateF" id="eirRateF" name="eirRateF" placeholder="EIR Rate" >
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.eirRateF.invalid && editCalcForm.controls.eirRateF.touched">EIR Rate must be filled with numeric digits</span>
- </div>
- <!-- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px"> Calculate Type</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="calculateType" id="kurs" name="calculateType" placeholder="Calculate Type" >
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.calculateType.invalid && editCalcForm.controls.calculateType.touched">Calculate Type cannot be empty</span>
- </div> -->
- </div>
- <div class="form-row">
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Nominal</label>
- <input type="text"class="form-control" style="width: 95%" formControlName="nominalF" id="nominalF" name="nominalF" placeholder="Nominal" [value]="nominalF" (change)="onChangeNominal($event.target.value)">
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.nominalF.invalid && editCalcForm.controls.nominalF.touched">Nominal must be filled with numeric digits</span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Kurs</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="kurs" id="kurs" name="kurs" placeholder="Kurs" [value]="kurs" (change)="onChangeKurs($event.target.value)">
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.kurs.invalid && editCalcForm.controls.kurs.touched">Kurs must be filled with numeric digits</span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Nominal Equivalen</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="nominalEqivalen" id="nominalEqivalen" name="nominalEqivalen" placeholder="Nominal Eqivalen">
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.nominalEqivalen.invalid && editCalcForm.controls.nominalEqivalen.touched">Nominal Equivalen must be filled with numeric digits</span>
- </div>
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">COA Debet</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="coaDebet" id="coaDebet" name="coaDebet" placeholder="COA Debet" >
- <!-- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.coaDebet.invalid && editCalcForm.controls.coaDebet.touched">COA Debet must be filled with numeric digits</span> -->
- </div>
- <!-- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Period</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="period" id="period" name="period" placeholder="period" >
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.period.invalid && editCalcForm.controls.period.touched">Period cannot be empty</span>
- </div> -->
- <!-- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Asset Type</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="assetTypeF" id="assetTypeF" name="assetTypeF" placeholder="Asset Type" >
- <span style="font-size:10px; color: #ed4a4a; " *ngIf="editCalcForm.controls.assetTypeF.invalid && editCalcForm.controls.assetTypeF.touched">Asset Type cannot be empty</span>
- </div> -->
- <!-- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Rating LGD</label>
- <select formControlName="ratingLGD" style="min-width: 95%" id="ratingLGD" name="ratingLGD" class="btn btn-outline-dark dropdown-toggle" type="text" >
- <option value="null">Select Rating LGD</option>
- <option *ngFor="let trating of listRatingNameLGD" [value]="trating">{{trating}}</option>
- </select>
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="(editCalcForm.controls.ratingLGD.invalid && editCalcForm.controls.ratingLGD.touched) || (editCalcForm.controls.ratingLGD.value == 'null' && editCalcForm.controls.ratingLGD.touched)">Rating type cannot be empty</span>
- </div> -->
- </div>
- <!-- <div class="form-row">
- </div> -->
- <div class="form-row">
- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">COA Kredit</label>
- <input type="text" class="form-control" style="width: 95%" formControlName="coaKredit" id="coaKredit" name="coaKredit" placeholder="COA Kredit">
- <!-- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.coaKredit.invalid && editCalcForm.controls.coaKredit.touched">COA Kredit must be filled with numeric digits</span> -->
- </div>
- <!-- <div class="col-md-3 col-lg-3 col-sm-3">
- <label style="font-size: 11px">Calculate Type</label>
- <select formControlName="calculateType" style="min-width: 100%" id="calculateType" name="calculateType" class="btn btn-outline-secondary dropdown-toggle" type="text" >
- <option value="PD1YEAR">PD 1 YEAR</option>
- <option value="LIFETIME">LIFETIME</option>
- </select>
- <span style="font-size:10px; color: #ed4a4a;" *ngIf="editCalcForm.controls.calculateType.invalid && editCalcForm.controls.calculateType.touched">Rating type cannot be empty</span>
- </div> -->
- </div>
- <br>
- <div class="modal-footer">
- <button type="button" data-dismiss="modal" class="btn btn-success" (click)="goConfigCalculation()" type="submit">Add</button>
- <!-- insertDataModelForm.controls.detail.controls[i].controls.dataModelValue.invalid -->
- <button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
- </div>
- </form>
- </div>
- </div>
- <!-- form end -->
- </div>
- </div>
- </div>
- <!-- Modal -->
- <div class="modal fade" id="exampleModal-5" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel-5" aria-hidden="true" >
- <div class="modal-dialog" >
- <div class="modal-content" style="min-width: 500px;">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel-5">Login Approval</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <form class="form-sample" [formGroup]="loginForm">
- <div class="modal-body">
- <div class="form-group">
- <label >Username</label>
- <input type="text" class="form-control" formControlName="username" id="dataModelValue" name="dataModelValue" placeholder="">
- </div>
- <div class="form-group">
- <label >Password</label>
- <input type="password" class="form-control" formControlName="password" id="dataModelValue" name="dataModelValue" placeholder="">
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" data-dismiss="modal" class="btn btn-success" (click)="login()" type="submit">Submit</button>
- <!-- insertDataModelForm.controls.detail.controls[i].controls.dataModelValue.invalid -->
- <button type="button" class="btn btn-danger" (click)="close()" data-dismiss="modal">Cancel</button>
- </div>
- </form>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement