Angus Wiki
  • Group 1
    • Angus Wiki
    • Control Types
      • Text
      • Textarea
      • Password
      • Spacer
      • Integer
      • Double
      • Double4
      • Double5
      • Date
      • Daterange
      • Time
      • Datetime
      • Select
      • Anglookup
      • Boolean
      • Button
      • Filter
      • Radio
      • Multiselect
      • Dbimage
      • Image
      • Html
      • Chart
      • Widget
      • Autocomplete
      • Chip
      • Phoneinput
    • General type
    • Toolbar
    • Menu
    • Grid
    • Grid Filter Panel
    • Page
    • Analysis
    • OptionRecord
    • Record
      • Recordlarda Fuzzy Search Kullanımı
      • Recordlara Panel Ekleme
      • Record Butonlarına da Rol Verilebilir
    • Record scripti
    • Butonda Script Kullanımı
    • Buton ve row actiondan gridfilter veri gönderme
    • Combine Latest
    • Sp ye istek atıp dönen id bir tane ise record fazla ise grid açan buton scripti
  • Group 3
    • Angus Lokal Kurulum Linux
    • İlk kurulum
    • Kubernetes Dashboard
  • Group 2
    • Angus Lokal Kurulum Windows
    • Gerekli Uygulamalar
      • Ubuntu Kurulumu
      • WSL Kurulumu
      • Docker Kurulumu
      • Kubernetes Kurulumu
      • Microsoft SQL Kurulumu
    • Kubernetes Ayarları
    • Sistemin Çalıştırılması
  • Group 4
    • Scriptler
      • Rezervasyon Kartı
      • Rezervasyon Kartı BeforeSave Script
      • Rezervasyon Kartı BeforeClone Script
      • Fatura
      • Fatura BeforeSave Script
      • Fatura Before Print Script Editor
      • Satış Projeleri
      • Satış Projeleri BeforeSave Script
      • Kapalı Oda İşlemleri
      • Kayıp Bulunan Listesi
      • İş Kaydı
      • İş Kaydı BeforeSave Script
      • Hesap Kartı
      • Stok Fiyat Anlaşması
      • Proforma Fatura Listesi
      • Fatura BeforeSave Script
      • Fiş
      • Fiş BeforeSave Script
      • Fiş AfterSave Script
      • Fiş Before Print Script
      • Fiş BeforeClone Script
      • Ödeme Emri
      • Ödeme Emri BeforeSave Script
      • Çek/Senet
      • Banka Ekstresi Oku BeforeSave Script
      • Hesap Mutabakatı
      • Babs Mutabakat
      • Kur Değerleme
      • Kur Değerleme(Toplu Döviz)
      • Yaşlandırma Analizi
      • Seyahat Acentası
      • Fiyat Kodu
      • Kontrat Detay
      • Entegrasyon Bağlantı Tanımları
      • Stok İrsaliye
      • Stok İrsaliye BeforeSave Script
      • Stok Fişi
      • Stok Fişi BeforeSave Script
      • Talep
      • Talep BeforeSave Script
      • Üretim Emri
      • Stok Sayım
      • Stok Sayım BeforeSave Script
      • Tüketim Fişleri
      • Adisyon Before Save Script
      • Stok Fiyat Anlaşması
      • Stok Fiyat Anlaşması BeforeSave Script
      • Misafir Kartı
      • Yeni Talep
      • Yeni Talep BeforeSave Script
      • Yeni Talep AfterSave Script
      • Çağrı Merkezi Kaydı
      • Çağrı Merkezi Kaydı AfterSave Script
      • Üyelik
      • Ödeme Linki
      • Doluluk Grafikleri
      • Dağılım Analizi
      • Park Giriş BeforeClone Script
      • Park Giriş
      • Park Rezervasyonu
      • Park Rezervasyonu BeforeSave Script
      • Park Rezervasyonu BeforeClone Script
      • Seyahat Acentası
      • Kullanıcı Bilgileri
      • Kullanıcı Bilgileri BeforeSave Script
      • Medikal Rezervasyon Kartı
      • Medikal BeforeSave Script
      • Medikal BeforeClone Script
      • Ödeme Linki
      • Ödeme Linki BeforeSave Script
  • Group 5
    • IP Santral Entegrasyonu
    • Ip Santral Sistemi
    • File Transfer Service
    • IP Santral Engtegrasyonu Angus Kullanımı
  • Response Header'larındaki Alanlar ve Anlamları
Powered by GitBook
On this page
  1. Group 4
  2. Scriptler

Fiyat Kodu

Fiyat Kodu Script

console.log('that',this);

let useDailyRatesControl = this.allFormControls['USEDAILYRATES'];

 const c1 = this.allFormControls['DAILYRATEMARKUPPERCENT'];
 const c2= this.allFormControls['DAILYRATEMARKUPAMOUNT'];

useDailyRatesControl.valueChanges.pipe(rxjs.startWith(useDailyRatesControl.value)).subscribe(v=>{
  
 if(v === 2){ 
     c1.enable(),c2.disable();
      this.recordService.children.P2.component.tabGroupService.children[0].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[4].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[5].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[6].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[7].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[8].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[9].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[11].componentRef.instance.hide=true;
      this.recordService.children.P2.component.updateTabs();
      document.querySelector('.ang-record-hotel_ratecode .ang-tab-groupP2 .mat-tab-label-active')?.click();
 }
 else if(v == 1){c1.disable(),c2.enable();
      this.recordService.children.P2.component.tabGroupService.children[0].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[4].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[5].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[6].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[7].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[8].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[9].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[11].componentRef.instance.hide=true;
      this.recordService.children.P2.component.updateTabs();
      document.querySelector('.ang-record-hotel_ratecode .ang-tab-groupP2 .mat-tab-label-active')?.click();
 }
 else if(v == 0){c1.disable(),c2.disable();
 
      this.recordService.children.P2.component.tabGroupService.children[0].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[11].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[4].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[5].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[6].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[7].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[8].componentRef.instance.hide=true;
      this.recordService.children.P2.component.tabGroupService.children[9].componentRef.instance.hide=true;
      this.recordService.children.P2.component.updateTabs();
      document.querySelector('.ang-record-hotel_ratecode .ang-tab-groupP2 .mat-tab-label-active')?.click();
  }
  else if (v != 2){
    
   c1.disable(),c2.disable();
      this.recordService.children.P2.component.tabGroupService.children[4].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[5].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[6].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[7].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[8].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[9].componentRef.instance.hide=false;
      this.recordService.children.P2.component.tabGroupService.children[11].componentRef.instance.hide=true;
      this.recordService.children.P2.component.updateTabs();
      document.querySelector('.ang-record-hotel_ratecode .ang-tab-groupP2 .mat-tab-label-active')?.click();
  }
});

PreviousSeyahat AcentasıNextKontrat Detay

Last updated 3 years ago