달력

7

« 2025/7 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2016. 5. 25. 14:27

dhtml 체크박스 사용하기 카테고리 없음2016. 5. 25. 14:27

rJsonL = Needsware.Grid.getDxGridTargetData(myGridL, dsGridL, "CHK", 0);
 var pGcod = "";
  var pYm = "";
  var pIssuCnt = "";
  var rowStr = "";
  if (rJsonL.TOTAL_CNT > 0) {
   //--check multi
   for(var i=0; i<chgRowsL; i++){
    pGcod = myGridL.cells(rJsonL.CHG_IDS[i], myGridL.getColIndexById("GCOD")).getValue();
    pYm = myGridL.cells(rJsonL.CHG_IDS[i], myGridL.getColIndexById("YM")).getValue();
    pIssuCnt = myGridL.cells(rJsonL.CHG_IDS[i], myGridL.getColIndexById("ISSU_CNT")).getValue();
    if( i == 0 ){
     rowStr += "[";
     rowStr += "{"+
          "\"GCOD\":\""+pGcod+"\""+
          ","+
          "\"YM\":\""+pYm+"\""+
          ","+
          "\"ISSU_CNT\":\""+pIssuCnt+"\""+
          "}";
    }else {
     rowStr += ",{"+
          "\"GCOD\":\""+pGcod+"\""+
          ","+
          "\"YM\":\""+pYm+"\""+
          ","+
          "\"ISSU_CNT\":\""+pIssuCnt+"\""+
          "}";
    }
    if( i == (chgRowsL-1) ){
     rowStr += "]";
     
    }
   }
  }

 

//--console.log("###checked rowStr : " + JSON.stringify(rowStr));
  var objChgL = JSON.parse(JSON.stringify(rowStr));
  

//-- rJsonL.CHG_ITEMS

var params   = {COMPCD:compcd,FGROUP:fgroup,SGROUP:sgroup, GCOD :gcod , YM:ym , ISSU_CNT:issuCnt , PTN_COMP : ptncomp, CHG_ITEMS_L:objChgL};
  /* do Server Transaction */

:
Posted by 상문이