<ol class="breadcrumb breadcrumb-arrow font-trirong">
  <li><a href="javascript://"> Customer Information</a></li>
</ol>
<div class="dg-wrapper">
  <div class="clr-row">
    <div class="clr-col-8">
      <h3>Customer Information </h3>
    </div>
    <div class="clr-col-4" style="text-align: right;">
 <button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" >
        <clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon>    <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
      </button>
        <!-- button -->
     <button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
        <clr-icon shape="plus"></clr-icon>ADD
      </button>
    </div></div>
  <ng-container *ngIf="!isCardview">   <!-- GET ALL -->     <clr-datagrid [clrDgLoading]="loading" [(clrDgSelected)]="selected">
    <clr-dg-placeholder>
        <ng-template #loadingSpinner>
            <clr-spinner>Loading ... </clr-spinner>
        </ng-template>
        <div *ngIf="error;else loadingSpinner">{{error}}</div>
    </clr-dg-placeholder>

<clr-dg-column [clrDgField]="'company_name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Company Name
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'contact_person'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Contact Person
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'manufacturer'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Manufacturer
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'type'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Type
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'product'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Product
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'email_address'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Email Address
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'phone_number'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Phone Number
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'customer_address'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Customer Address
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'deployment_type'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Deployment Type
						    </ng-container></clr-dg-column>

 
 
 
<clr-dg-column [clrDgField]="' ht_panel_monitoring'"> <ng-container *clrDgHideableColumn="{hidden: false}"> ht panel monitoring
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' active_energy'"> <ng-container *clrDgHideableColumn="{hidden: false}"> active energy
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' dg_monitoring___with_fule'"> <ng-container *clrDgHideableColumn="{hidden: false}"> dg monitoring - with fule
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' dg_monitoring___without_fule'"> <ng-container *clrDgHideableColumn="{hidden: false}"> dg monitoring - without fule
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' ups_monitoring'"> <ng-container *clrDgHideableColumn="{hidden: false}"> ups monitoring
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' apfc_panel_monitoring'"> <ng-container *clrDgHideableColumn="{hidden: false}"> apfc panel monitoring
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' busbar_monitoring'"> <ng-container *clrDgHideableColumn="{hidden: false}"> busbar monitoring
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' lt_panel_monitoring'"> <ng-container *clrDgHideableColumn="{hidden: false}"> lt panel monitoring
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' compressed_air__gag_monitoring'"> <ng-container *clrDgHideableColumn="{hidden: false}"> compressed air -gag monitoring
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' water_management_stp_etp'"> <ng-container *clrDgHideableColumn="{hidden: false}"> water management-stp/etp
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' compressed_air___lpg_n2_o2_co2'"> <ng-container *clrDgHideableColumn="{hidden: false}"> compressed air - lpg/n2/o2/co2
						    </ng-container></clr-dg-column>
   

 
<clr-dg-column [clrDgField]="' water_management_water_monitoring'"> <ng-container *clrDgHideableColumn="{hidden: false}"> water management-water monitoring
						    </ng-container></clr-dg-column>
   




<clr-dg-column [clrDgField]="'quantity'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Quantity
						    </ng-container></clr-dg-column>


<clr-dg-column [clrDgField]="'price'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Price
						    </ng-container></clr-dg-column>




<clr-dg-column [clrDgField]="'description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description
						    </ng-container></clr-dg-column>

 

 
 <!-- who column -->
      <clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
        <clr-icon shape="bars"></clr-icon> Action
      </ng-container></clr-dg-column>
      <!-- end --> 

 <clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">

<clr-dg-cell>{{user.company_name }}</clr-dg-cell>


<clr-dg-cell (click)="goToReplaceStringcontact_person (user.contact_person)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon>
</clr-dg-cell>


<clr-dg-cell>{{user. manufactureridentifier}}</clr-dg-cell>


<clr-dg-cell>{{user.type }}</clr-dg-cell>


<clr-dg-cell>{{user.product }}</clr-dg-cell>


<clr-dg-cell>{{user.email_address }}</clr-dg-cell>


<clr-dg-cell>{{user.phone_number }}</clr-dg-cell>


<clr-dg-cell (click)="goToReplaceStringcustomer_address(user.customer_address)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon></clr-dg-cell>


<clr-dg-cell>{{user. deployment_typeidentifier}}</clr-dg-cell>



 
<clr-dg-cell>{{user.dg_monitoring___with_fule}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.active_energy}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.dg_monitoring___without_fule}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.ups_monitoring}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.water_management_stp_etp}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.apfc_panel_monitoring}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.busbar_monitoring}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.lt_panel_monitoring}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.ht_panel_monitoring}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.compressed_air__gag_monitoring}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.compressed_air___lpg_n2_o2_co2}}</clr-dg-cell>
   

 
<clr-dg-cell>{{user.water_management_water_monitoring}}</clr-dg-cell>
   




<clr-dg-cell>{{user.quantity }}</clr-dg-cell>


<clr-dg-cell>{{user.price }}</clr-dg-cell>




<clr-dg-cell (click)="goToReplaceStringdescription(user.description)" style="cursor: pointer; align-items: center;"><clr-icon shape="details"></clr-icon></clr-dg-cell>



 
  <!-- who column -->
<clr-dg-cell>
  <clr-signpost>
   <span style="cursor: pointer;" clrSignpostTrigger><clr-icon shape="help" class="success" style="color: rgb(0, 130, 236);"></clr-icon></span>
   <clr-signpost-content [clrPosition]="'left-middle'" *clrIfOpen>
     <h5 style="margin-top: 0">Who Column</h5>
           <div>Account ID: <code class="clr-code">{{user.accountId}}</code></div>
           <div>Created At: <code class="clr-code">{{user.createdAt| date}}</code></div>
           <div>Created By: <code class="clr-code">{{user.createdBy}}</code></div>
           <div>Updated At: <code class="clr-code">{{user.updatedAt | date}}</code></div>
           <div>Updated By: <code class="clr-code">{{user.updatedBy}}</code></div>
   </clr-signpost-content>
 </clr-signpost>
 </clr-dg-cell>
 
 <!-- who colmn --> 
 
 <clr-dg-action-overflow>
        <button class="action-item" (click)="onEdit(user)">Edit</button>
        <button class="action-item" (click)="onDelete(user)">Delete</button>
      </clr-dg-action-overflow>
         </clr-dg-row>
    <clr-dg-footer>
      <clr-dg-pagination #pagination [clrDgPageSize]="10">
        <clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Users per page</clr-dg-page-size>
        {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
        of {{pagination.totalItems}} users
      </clr-dg-pagination>
    </clr-dg-footer>
  </clr-datagrid> </ng-container>
<ng-template #showInfo>
  <div class="alert alert-info" role="alert">
      <div class="alert-items">
          <div class="alert-item static">
              <span class="alert-text">
                <clr-icon class="alert-icon" shape="info-circle"></clr-icon>
                    Data could be found. Loading..
                  <clr-spinner [clrMedium]="true">Loading ...</clr-spinner>
              </span>
          </div>
      </div>
  </div>
</ng-template><ng-container *ngIf="isCardview">
  <div *ngIf="product; else showInfo" class="clr-row clr-align-items-start clr-justify-content-start">
    <div *ngFor="let app of product| filter:search; let index = i" class="clr-col-auto" >
      <div class="clr-row">
        <div class="clr-col-lg-12 clr-col-md-4 clr-col-sm-4 clr-col-12" style="width: 410px;">
  <div class="card" style="padding: 10px; "[style.background-color]="cardmodal.cardColor !== '' ? cardmodal.cardColor : 'white'">
    <div class="card-body" style="display: grid; grid-template-columns: repeat(13, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px;">
      <ng-container *ngFor="let item of dashboardArray">
        <div [style.gridColumn]="item.x + 1" [style.gridRow]="item.y + 1" [style.gridColumnEnd]="item.x + item.cols + 1"
          [style.gridRowEnd]="item.y + item.rows + 1">
          <div *ngIf="item.name === 'textField'" class="title-card card-title"
          [style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
          [style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
          [style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
          [style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
          [style.font-style]="item.italic == true ? 'Italic' : 'normal'"
          [style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' : 
          (item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
          [style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
          [style.color]="item.textcolor !== '' ? item.textcolor : 'black'"     	 [style.background-color]="item.conditionValue ==  app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
          [style.color]="item.conditionValue ==  app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
           {{beforeText(item.fieldtext)}}
          {{ app[transform(item.fieldtext) ] }}
          {{afterText(item.fieldtext)}}
          </div>

          <div *ngIf="item.name === 'dateField'" class="title-card card-title"
          [style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
          [style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
          [style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
          [style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
          [style.font-style]="item.italic == true ? 'Italic' : 'normal'"
          [style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' : 
          (item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
          [style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
          [style.color]="item.textcolor !== '' ? item.textcolor : 'black'"			 [style.background-color]="item.conditionValue ==  app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
          [style.color]="item.conditionValue ==  app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
          {{beforeText(item.fieldtext)}}
          {{ app[transform(item.fieldtext) ] | date}}
          {{afterText(item.fieldtext)}}
          </div>
          <div *ngIf="item.name === 'numberField'" class="title-card card-title"
          [style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
          [style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
          [style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
          [style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
          [style.font-style]="item.italic == true ? 'Italic' : 'normal'"
          [style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' : 
          (item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
          [style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
          [style.color]="item.textcolor !== '' ? item.textcolor : 'black'"			 [style.background-color]="item.conditionValue ==  app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
          [style.color]="item.conditionValue ==  app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">
          {{beforeText(item.fieldtext)}}
          {{ app[transform(item.fieldtext) ]}}
          {{afterText(item.fieldtext)}}
          </div>

          <div *ngIf="item.name === 'Line'" class="title-card card-title"
          [style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
          [style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
          [style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
          [style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
          [style.font-style]="item.italic == true ? 'Italic' : 'normal'"
          [style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' : 
          (item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
          [style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
          [style.color]="item.textcolor !== '' ? item.textcolor : 'black'">
          <hr>
          </div>

          
          <div *ngIf="item.name === 'Icon'" class="icon-card"
          [style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
          [style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
          [style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
          [style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
          [style.font-style]="item.italic == true ? 'Italic' : 'normal'"
          [style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' : 
          (item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
          [style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
          [style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
          >
            <clr-icon [attr.shape]="item.iconName"></clr-icon>
          </div>

          <div *ngIf="item.name == 'Image'"
          [style.text-align]="item.alignment !== '' ? item.alignment : 'left'"
          [style.line-height]="item.textlineheight !== '' ? item.textlineheight : '1'"
          [style.font-family]="item.fontName !== '' ? item.fontName : 'Metropolis'"
          [style.font-size]="item.fontSize !== '' ? item.fontSize : '100%'"
          [style.font-style]="item.italic == true ? 'Italic' : 'normal'"
          [style.font-weight]="item.bold == true ? 'bold' : 'normal'" [style.text-decoration]="(item.underline && item.strikethough) ? 'underline line-through' : 
          (item.underline ? 'underline' : (item.strikethough ? 'line-through' : 'none'))"
          [style.background-color]="item.backgroundcolor !== '' ? item.backgroundcolor : 'white'"
          [style.color]="item.textcolor !== '' ? item.textcolor : 'black'"
          [style.background-color]="item.conditionValue ==  app[transform(item.fieldtext) ] ? item.conditionbackgroundcolor : item.backgroundcolor"
          [style.color]="item.conditionValue ==  app[transform(item.fieldtext) ] ? item.conditiontextcolor : item.textcolor">			 <img id="filePreview" [src]="item.imageURL" alt="File Preview"
            [style.width]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"
            [style.height]="item.imagewidth !== '' ? item.imagewidth + 'px' : '100px'"></div>
        </div>
      </ng-container>
    </div>
  </div>
  </div>
  </div>
  </div>
  </div>
  </ng-container>
</div>



<clr-modal [(clrModalOpen)]="rsModalcontact_person" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
						  <div class="modal-body">
						    <textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
						  </div></clr-modal>












<clr-modal [(clrModalOpen)]="rsModalcustomer_address" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
						  <div class="modal-body">
						    <textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
						  </div></clr-modal>












<clr-modal [(clrModalOpen)]="rsModaldescription" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
						  <div class="modal-body">
						    <textarea class="form-control" style="width:100%; height: 400px;" readonly>{{rowSelected}}</textarea>
						  </div></clr-modal>



<!-- //		EDIT DATA......... -->
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
  <h3 class="modal-title">Update Customer Information
 <!--update button -->



























<button  class="btn btn-icon btn-primary" (click)="openvalueListorder_summary('EDIT')">V</button>

</h3>
  <div class="modal-body" *ngIf="rowSelected.id">
    <h2 class="heading">{{rowSelected.id}}</h2>
<!-- button -->
    <form >
<div class="clr-row"> 
<div class="clr-col-sm-12">       
<label>Company Name</label>
	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.company_name" name="company_name" />
	      </div>

<div class="clr-col-sm-12">               
<label> Contact Person</label>
	              <textarea cols="10" rows="2"[(ngModel)]="rowSelected.contact_person" name="contact_person " placeholder="Textarea">  </textarea>
	           </div> 


 
<div class="clr-col-sm-12"> 
<label>Manufacturer</label>
<select name="manufacturer" [(ngModel)]="rowSelected.manufacturer"> 
  <option [value]="null">Choose manufacturer</option>
<option *ngFor=" let item of selectmanufacturer" [value]="item.manufacturer_name">{{item.manufacturer_name }}</option> </select> </div>
 


<!-- dependent dropdown field start -->



 
<div class="clr-col-sm-12">
  <label> Type Dependent</label> 
<select name=" type" [(ngModel)]="rowSelected.type_dependent " class="clr-dropdown">
    <option [ngValue]="null">Select Option</option>
    <option *ngFor="let entity of typedependentData" [value]="entity.type_name">{{entity.type_name}}</option>
  </select>
</div>

 

 <!-- dependent dropdown field end -->

<!-- dependent dropdown field start -->



 
<div class="clr-col-sm-12">
  <label> Product Dependent</label> 
<select name=" product" [(ngModel)]="rowSelected.product_dependent " class="clr-dropdown">
    <option [ngValue]="null">Select Option</option>
    <option *ngFor="let entity of productdependentData" [value]="entity.product_name">{{entity.product_name}}</option>
  </select>
</div>

 

 <!-- dependent dropdown field end -->

<div class="clr-col-sm-12">     
<label> Email Address</label>
								  <input id="name" class="clr-input" type="email" 
						 [(ngModel)]="rowSelected.email_address " name="email_address" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
								  <div *ngIf="rowSelected.email_address && !isValidemail_address(rowSelected.email_address )" class="error_mess">
	            * Email must be a valid email address.         
  </div> </div>

<div class="clr-col-sm-12">       
<label>Phone Number</label>
	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.phone_number" name="phone_number" />
	      </div>

<div class="clr-col-sm-12">         
<label> Customer Address</label>
	        <input id="name"  type="Text" class="form-control" style="border: none; outline: none; height:33px !important;" [(ngModel)]="rowSelected.customer_address" name=" customer_address " />       </div>


 
<div class="clr-col-sm-12"> 
<label>Deployment Type</label>
<select name="deployment_type" [(ngModel)]="rowSelected.deployment_type"> 
  <option [value]="null">Choose deployment_type</option>
<option *ngFor=" let item of selectdeployment_type" [value]="item.deployment_type">{{item.deployment_type }}</option> </select> </div>
 


<!-- multiselect checkbox field start -->
<div class="clr-col-sm-12">
 <label> Select Objective</label>
  <div class="clr-form-control" style="margin-top: 5px;margin-bottom: 10px;">
    <div class="clr-control-container">
      
 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="active_energy" name="active_energy" [(ngModel)]="rowSelected.active_energy" class="clr-checkbox" /> 
<label for="active_energy" class="clr-control-label"> active energy</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="dg_monitoring___with_fule" name="dg_monitoring___with_fule" [(ngModel)]="rowSelected.dg_monitoring___with_fule" class="clr-checkbox" /> 
<label for="dg_monitoring___with_fule" class="clr-control-label"> dg monitoring - with fule</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="dg_monitoring___without_fule" name="dg_monitoring___without_fule" [(ngModel)]="rowSelected.dg_monitoring___without_fule" class="clr-checkbox" /> 
<label for="dg_monitoring___without_fule" class="clr-control-label"> dg monitoring - without fule</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="ups_monitoring" name="ups_monitoring" [(ngModel)]="rowSelected.ups_monitoring" class="clr-checkbox" /> 
<label for="ups_monitoring" class="clr-control-label"> ups monitoring</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="water_management_stp_etp" name="water_management_stp_etp" [(ngModel)]="rowSelected.water_management_stp_etp" class="clr-checkbox" /> 
<label for="water_management_stp_etp" class="clr-control-label"> water management-stp/etp</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="apfc_panel_monitoring" name="apfc_panel_monitoring" [(ngModel)]="rowSelected.apfc_panel_monitoring" class="clr-checkbox" /> 
<label for="apfc_panel_monitoring" class="clr-control-label"> apfc panel monitoring</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="busbar_monitoring" name="busbar_monitoring" [(ngModel)]="rowSelected.busbar_monitoring" class="clr-checkbox" /> 
<label for="busbar_monitoring" class="clr-control-label"> busbar monitoring</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="lt_panel_monitoring" name="lt_panel_monitoring" [(ngModel)]="rowSelected.lt_panel_monitoring" class="clr-checkbox" /> 
<label for="lt_panel_monitoring" class="clr-control-label"> lt panel monitoring</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="ht_panel_monitoring" name="ht_panel_monitoring" [(ngModel)]="rowSelected.ht_panel_monitoring" class="clr-checkbox" /> 
<label for="ht_panel_monitoring" class="clr-control-label"> ht panel monitoring</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="compressed_air__gag_monitoring" name="compressed_air__gag_monitoring" [(ngModel)]="rowSelected.compressed_air__gag_monitoring" class="clr-checkbox" /> 
<label for="compressed_air__gag_monitoring" class="clr-control-label"> compressed air -gag monitoring</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="compressed_air___lpg_n2_o2_co2" name="compressed_air___lpg_n2_o2_co2" [(ngModel)]="rowSelected.compressed_air___lpg_n2_o2_co2" class="clr-checkbox" /> 
<label for="compressed_air___lpg_n2_o2_co2" class="clr-control-label"> compressed air - lpg/n2/o2/co2</label> </div>

       

 

      <div class="clr-checkbox-wrapper"> <input type="checkbox" id="water_management_water_monitoring" name="water_management_water_monitoring" [(ngModel)]="rowSelected.water_management_water_monitoring" class="clr-checkbox" /> 
<label for="water_management_water_monitoring" class="clr-control-label"> water management-water monitoring</label> </div>

       


    </div>
  </div>
</div>
<!-- multiselect checkbox field end -->

<div class="clr-col-sm-12">       
<label>Quantity</label>
	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.quantity" name="quantity" />
	      </div>

<div class="clr-col-sm-12">       
<label>Price</label>
	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.price" name="price" />
	      </div>

 <div class="clr-col-sm-12">
          <label>total</label>
          <input class="clr-input" type="text" [value]="totaltotal" readonly />
        </div>

<div class="clr-col-sm-12">         
<label> Description</label>
	        <input id="name"  type="Text" class="form-control" style="border: none; outline: none; height:33px !important;" [(ngModel)]="rowSelected.description" name=" description " />       </div>



  </div> 






























<!-- form code start -->
  <div *ngIf="checkFormCode">
    <h4 style="font-weight: 300;display: inline;">Extension</h4>
    <br>
    <hr>
    <div class="clr-row">
      <div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
        <ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
          <!-- Text Input -->    <label  *ngSwitchCase="'text'">{{ field.fieldName }}</label>
          <input *ngSwitchCase="'text'" [type]="field.fieldType"  name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]" class="clr-input" />
  
          <!-- Date Input -->    <label  *ngSwitchCase="'date'">{{ field.fieldName }}</label>
          <input *ngSwitchCase="'date'" [type]="field.fieldType"  name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"  class="clr-input" />
  
          <!-- Textarea -->    <label  *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
          <textarea *ngSwitchCase="'textarea'"  name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"  col="10" row="2"></textarea>
  
          <!-- Checkbox -->    <label  *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
          <input *ngSwitchCase="'checkbox'" [type]="field.fieldType" name="{{ field.extValue }}" [(ngModel)]="rowSelected[field.extValue]"  class="clr-checkbox" />
        </ng-container>
  </div>
  </div>
</div>

  <!-- form code end -->  <div class="modal-footer">
      <button type="button" class="btn btn-outline" (click)="modalEdit = false">Cancel</button>
      <button type="submit" class="btn btn-primary"  (click)="onUpdate(rowSelected.id)">Update</button>
      </div>
    </form>
  </div>
</clr-modal>
<clr-modal [(clrModalOpen)]="modaldelete" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
  <div class="modal-body" *ngIf="rowSelected.id">
    <h1 class="delete">Are You Sure Want to delete?</h1>
    <h2 class="heading">{{rowSelected.id}}</h2>
    <div class="modal-footer">
      <button type="button" class="btn btn-outline" (click)="modaldelete = false">Cancel</button>
    <button type="button" (click)="delete(rowSelected.id)" class="btn btn-primary" >Delete</button>
    </div>
  </div>
</clr-modal>
<!-- ADD FORM ..... -->
<clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
  <h3 class="modal-title">Add Customer Information 



























<button  class="btn btn-icon btn-primary" (click)="openvalueListorder_summary('ADD')">V</button>


  <!-- aeroplane icon -->
    &nbsp; &nbsp; &nbsp; &nbsp;
    <a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
      class="tooltip tooltip-sm tooltip-bottom-left">
      <a id="build_extension" [routerLink]="['../extension/all']" [queryParams]="{ formCode: 'Customer_information_formCode' }">
        <clr-icon shape="airplane" size="32"></clr-icon>
      </a>
      <span class="tooltip-content">Form Extension</span>
    </a> </h3>
  <div class="modal-body">
     <form [formGroup]="entryForm" >
   <div class="clr-row" style="height: fit-content;">

<div class="clr-col-sm-12">
 <label>  Company Name</label>
 <input class="clr-input"  type="text"  formControlName="company_name" />       
 </div>

<div class="clr-col-sm-12">             
 <label>  Contact Person</label>             
 <textarea cols="10" rows="2" formControlName="contact_person" placeholder="Textarea">  </textarea>
	            </div>


 
<div class="clr-col-sm-12">
	          <label>  Manufacturer</label> 
<select  formControlName="manufacturer">  
  <option [value]="null">Choose Manufacturer</option>
				<option *ngFor="let item of selectmanufacturer" [value]="item.manufacturer_name">{{item.manufacturer_name}}</option>
	      </select>          </div>
 


<!-- dependent dropdown field start -->
						   

 

<div class="clr-col-sm-12">
						    <label> Type</label>  <select formControlName="type" class="clr-dropdown">    
 <option [ngValue]="null">Select Option</option>
						     <option *ngFor="let entity of typedependentData" [value]="entity.type_name">{{ entity.type_name}}</option>
						     </select>
  </div> 
 

<!-- dependent dropdown field end -->

<!-- dependent dropdown field start -->
						   

 

<div class="clr-col-sm-12">
						    <label> Product</label>  <select formControlName="product" class="clr-dropdown">    
 <option [ngValue]="null">Select Option</option>
						     <option *ngFor="let entity of productdependentData" [value]="entity.product_name">{{ entity.product_name}}</option>
						     </select>
  </div> 
 

<!-- dependent dropdown field end -->

<div class="clr-col-sm-12">
						<label> Email Address</label>
<input class="clr-input" type="email" formControlName="email_address" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$">
<div *ngIf="entryForm.controls['email_address'].errors" class="error_mess">
						          <div *ngIf="entryForm.controls['email_address'].hasError('pattern')" class="error_mess">* Email must be a valid email address
						            </div>  </div>
</div>

<div class="clr-col-sm-12">
 <label>  Phone Number</label>
 <input class="clr-input"  type="number"  formControlName="phone_number" />      
 <div *ngIf="submitted && entryForm.controls.phone_number.errors" class="error_mess">
  <div *ngIf="submitted && entryForm.controls.phone_number.errors.required" class="error_mess">*This field is Required</div>
</div>  
 </div>

<div class="clr-col-sm-12">        
 <label>Customer Address</label>      
   <input class="form-control" type="Text" formControlName="customer_address" style="border: none; outline: none; height:33px !important;" />
	      </div>


 
<div class="clr-col-sm-12">
	          <label>  Deployment Type</label> 
<select  formControlName="deployment_type">  
  <option [value]="null">Choose Deployment Type</option>
				<option *ngFor="let item of selectdeployment_type" [value]="item.deployment_type">{{item.deployment_type}}</option>
	      </select>          </div>
 


<!-- multiselect checkbox field start -->
     <div class="clr-col-sm-12">       
		<label> Select Objective</label>
	    <div class="clr-form-control" style="margin-top: 5px;margin-bottom: 10px;">
	      <div class="clr-control-container">

                       
 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="ht_panel_monitoring" formControlName="ht_panel_monitoring"  class="clr-checkbox" />       
				    <label for="ht_panel_monitoring" class="clr-control-label">ht panel monitoring</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="active_energy" formControlName="active_energy"  class="clr-checkbox" />       
				    <label for="active_energy" class="clr-control-label">active energy</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="dg_monitoring___with_fule" formControlName="dg_monitoring___with_fule"  class="clr-checkbox" />       
				    <label for="dg_monitoring___with_fule" class="clr-control-label">dg monitoring - with fule</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="dg_monitoring___without_fule" formControlName="dg_monitoring___without_fule"  class="clr-checkbox" />       
				    <label for="dg_monitoring___without_fule" class="clr-control-label">dg monitoring - without fule</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="water_management_stp_etp" formControlName="water_management_stp_etp"  class="clr-checkbox" />       
				    <label for="water_management_stp_etp" class="clr-control-label">water management-stp/etp</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="ups_monitoring" formControlName="ups_monitoring"  class="clr-checkbox" />       
				    <label for="ups_monitoring" class="clr-control-label">ups monitoring</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="apfc_panel_monitoring" formControlName="apfc_panel_monitoring"  class="clr-checkbox" />       
				    <label for="apfc_panel_monitoring" class="clr-control-label">apfc panel monitoring</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="busbar_monitoring" formControlName="busbar_monitoring"  class="clr-checkbox" />       
				    <label for="busbar_monitoring" class="clr-control-label">busbar monitoring</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="lt_panel_monitoring" formControlName="lt_panel_monitoring"  class="clr-checkbox" />       
				    <label for="lt_panel_monitoring" class="clr-control-label">lt panel monitoring</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="compressed_air__gag_monitoring" formControlName="compressed_air__gag_monitoring"  class="clr-checkbox" />       
				    <label for="compressed_air__gag_monitoring" class="clr-control-label">compressed air -gag monitoring</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="compressed_air___lpg_n2_o2_co2" formControlName="compressed_air___lpg_n2_o2_co2"  class="clr-checkbox" />       
				    <label for="compressed_air___lpg_n2_o2_co2" class="clr-control-label">compressed air - lpg/n2/o2/co2</label>  </div>
	                            

 
			<div class="clr-checkbox-wrapper">           
				<input type="checkbox" id="water_management_water_monitoring" formControlName="water_management_water_monitoring"  class="clr-checkbox" />       
				    <label for="water_management_water_monitoring" class="clr-control-label">water management-water monitoring</label>  </div>
	                            

 </div>       </div>     </div>
	              <!-- multiselect checkbox field end -->

<div class="clr-col-sm-12">
 <label>  Quantity</label>
 <input class="clr-input"  type="number"  formControlName="quantity" />      
 <div *ngIf="submitted && entryForm.controls.quantity.errors" class="error_mess">
  <div *ngIf="submitted && entryForm.controls.quantity.errors.required" class="error_mess">*This field is Required</div>
</div>  
 </div>

<div class="clr-col-sm-12">
 <label>  Price</label>
 <input class="clr-input"  type="number"  formControlName="price" />      
 <div *ngIf="submitted && entryForm.controls.price.errors" class="error_mess">
  <div *ngIf="submitted && entryForm.controls.price.errors.required" class="error_mess">*This field is Required</div>
</div>  
 </div>

 <div class="clr-col-sm-12">
          <label>total</label>
          <input class="clr-input" type="text" [value]="totaltotal" readonly />
        </div>

<div class="clr-col-sm-12">        
 <label>Description</label>      
   <input class="form-control" type="Text" formControlName="description" style="border: none; outline: none; height:33px !important;" />
	      </div>



 
 </div> 
































      <!-- form code start -->
      <div *ngIf="checkFormCode">
        <h4 style="font-weight: 300;display: inline;">Extension</h4>
        <br>
        <hr>
        <div class="clr-row">
          <div class="clr-col-4" *ngFor="let field of additionalFieldsFromBackend">
            <ng-container *ngIf="field.formCode === formcode" [ngSwitch]="field.fieldType">
              <!-- Text Input --> <label *ngSwitchCase="'text'">{{ field.fieldName }}</label>
              <input *ngSwitchCase="'text'" [type]="field.fieldType" [formControlName]="field.extValue"
                class="clr-input" />
              <!-- Date Input --> <label *ngSwitchCase="'date'">{{ field.fieldName }}</label>
              <input *ngSwitchCase="'date'" [type]="field.fieldType" [formControlName]="field.extValue"
                class="clr-input" />
              <!-- Textarea --> <label *ngSwitchCase="'textarea'">{{ field.fieldName }}</label>
              <textarea *ngSwitchCase="'textarea'" [formControlName]="field.extValue" col="10" row="2"></textarea>
              <!-- Checkbox --> <label *ngSwitchCase="'checkbox'">{{ field.fieldName }}</label><br>
              <input *ngSwitchCase="'checkbox'" [type]="field.fieldType" [formControlName]="field.extValue"
                class="clr-checkbox" />
            </ng-container>
          </div>
        </div>
      </div>
      <!-- form code end --> <div class="modal-footer">
<button type="button" class="btn btn-outline" (click)="modalAdd = false">Cancel</button>
        <button type="submit" class="btn btn-primary" (click)="onSubmit()">ADD</button>
        </div>
</form>
  </div>
</clr-modal>




























 <!--   value List field start-->
 <clr-modal [(clrModalOpen)]="valueListModalorder_summary" [clrModalSize]="'md'">
	  <h3 class="modal-title"><b>Select From  order_summary  List:</b></h3>
	  <div class="modal-body">   
		 <div class="clr-row">
	      <div class="clr-col-md-12 clr-col-sm-12" style="margin-top: 8px;">
	          <input id="data" type="text" placeholder="Enter search Criteria" class="clr-input" name="searchcusttextorder_summary" [(ngModel)]="searchcusttextorder_summary">       </div>
	      </div>     <clr-datagrid [clrDgLoading]="loading">
	      <clr-dg-placeholder><clr-spinner [clrMedium]="true">Loading ...</clr-spinner></clr-dg-placeholder>
	

		   
 
		   <clr-dg-column [clrDgField]="'product'"> <ng-container *clrDgHideableColumn="{hidden: false}">product</ng-container></clr-dg-column> 
		  

 
		   <clr-dg-column [clrDgField]="'description'"> <ng-container *clrDgHideableColumn="{hidden: false}">description</ng-container></clr-dg-column> 
		  

 
		   <clr-dg-column [clrDgField]="'price'"> <ng-container *clrDgHideableColumn="{hidden: false}">price</ng-container></clr-dg-column> 
		  

 
		   <clr-dg-column [clrDgField]="'quantity'"> <ng-container *clrDgHideableColumn="{hidden: false}">quantity</ng-container></clr-dg-column> 
		  

 
		   <clr-dg-column [clrDgField]="'total'"> <ng-container *clrDgHideableColumn="{hidden: false}">total</ng-container></clr-dg-column> 
		  

<clr-dg-row *clrDgItems="let user of product?.slice()?.reverse() | filter:searchcusttextorder_summary;  let i = index " [clrDgItem]="user">

	
 
	<clr-dg-cell (click)="getcustorder_summaryID(user.id)" style="color: rgb(108, 108, 194); cursor:pointer;">{{user.product}}</clr-dg-cell>
 

 
	<clr-dg-cell (click)="getcustorder_summaryID(user.id)" style="color: rgb(108, 108, 194); cursor:pointer;">{{user.description}}</clr-dg-cell>
 

 
	<clr-dg-cell (click)="getcustorder_summaryID(user.id)" style="color: rgb(108, 108, 194); cursor:pointer;">{{user.price}}</clr-dg-cell>
 

 
	<clr-dg-cell (click)="getcustorder_summaryID(user.id)" style="color: rgb(108, 108, 194); cursor:pointer;">{{user.quantity}}</clr-dg-cell>
 

 
	<clr-dg-cell (click)="getcustorder_summaryID(user.id)" style="color: rgb(108, 108, 194); cursor:pointer;">{{user.total}}</clr-dg-cell>
 


 </clr-dg-row>     <clr-dg-footer>
	        <clr-dg-pagination #pagination [clrDgPageSize]="10">
	          <clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Record per page</clr-dg-page-size>
	          {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
	          of {{pagination.totalItems}} Records        </clr-dg-pagination>
	      </clr-dg-footer>    </clr-datagrid>  </div></clr-modal>
	   <!--   value List field end-->

  <!-- htmlpopup -->
