[js]ajaxService를 m_post로 대체하기

힐링힐링·2023년 6월 28일
0

ajaxService를 m_post로 대체하기

화면명

통합정산_정산환경설정

TS

  cellEditEnd(events: any){
    if (events.value != "" || events.value != 0) {
      setTimeout(() => {
        for(let event of events) {
          if ( event.item.BizMD ) {
            //BizMD가 안넘어가는경우가 있어서 따로 나눠서 걸어줌
            setTimeout(()=>{
              this.eventBizMD = event.item.BizMD
              this.toolbar.ApplyChanges(); //화면 변경사항 적용            
            },100);

            setTimeout(()=>{
              console.log(event.item.BizMD, event.rowIndex);
              this.dcs.m_post("S_PAY_TaxAdjTotSetBizInfo_Reg_RowQuery", [{'BizMD' : this.eventBizMD,'DataSet' : 'DataSet1'}])
              .subscribe(
                result => {
                  if (result){
                    if (result[0][0].length !== 0) {
                      this.Rowdata = result[0][0];
                      this.ss1.updateRow(this.Rowdata,event.rowIndex);
                      // console.log('result[0][0]',result[0][0]);
                      this.toolbar.ApplyChanges(); 
                    }
                  }
                }
              );
              this.toolbar.ApplyChanges(); //화면 변경사항 적용            
            },300);
          }

        }
        this.toolbar.ApplyChanges(); //화면 변경사항 적용            
      },300);
    }
  }
profile
블로그 이전합니다 https://james-kim-tech.tistory.com/

0개의 댓글