Untitled
raw download clone
TEXT
views 22
,
size 808 b
//donvi
      if(this.inputMaTB===''&&this.selectedDonVi!==''&&this.inputTenTB===''&&this.selectedTinhTrang==='')
      {
        
        this.records=null;
        let recordstmp:any[] = [];
        
        for (var i = 0; i < this.recordsnow.length; ++i) {
          // code...
          if(this.Bankiemke.kK_TENDONVI===this.recordsnow[i].ctbkK_DV_QL&&this.selectedDonVi==='cungdonvi')
          {
            recordstmp[j]=this.recordsnow[i];
            j++;
            
          }
          if(this.Bankiemke.kK_TENDONVI!==this.recordsnow[i].ctbkK_DV_QL&&this.selectedDonVi==='khacdonvi')
            {
            recordstmp[j]=this.recordsnow[i];
            j++;
            
          }

        }
        this.records=recordstmp;
        j=0;
        return;

      }
close fullscreen
Login or Register to edit or fork this paste. It's free.