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
32
33
34
35
36
37
38
39
|
//업체 구분값 조회
this.divTest_cusGb_onclick = function(obj:Button, e:nexacro.ClickEventInfo)
{
//배열 화면에 있는 업체코드 넣기
var cusArray = new Array();
for (var i = 0; i < this.testList.rowcount; i++) {
var cdValId = this.testList.getColumn(i, "cdValId");
cusArray.push(cdValId);
}
//배열에 넣은 화면 업체코드 위치를 찾아 구분값 세팅
for (var i = 0; i < this.testListGb.rowcount; i++) {
var cusCode = this.testListGb.getColumn(i, "cusCode");
var cusGb = this.testListGb.getColumn(i, "cusGb");
var cusLoc = cusArray.indexOf(cusCode);
this.testList.setColumn(cusLoc, "cusGb", cusGb);
}
//화면에서 구분값 확인후 0으로 세팅 ex)구분값:W -> C,7을 0으로 세팅
for (var i = 0; i < this.testListGb.rowcount; i++) {
var cusCode = this.testListGb.getColumn(i, "cusCode");
var cusLoc = cusArray.indexOf(cusCode);
var cusGb = this.testList.getColumn(cusLoc, "cusGb");
if(cusGb == "W"){
this.testList.setColumn(cusLoc, "cbRoScnCdC", "0");
this.testList.setColumn(cusLoc, "cbRoScnCd7", "0");
} else if(cusGb == "WC"){
this.testList.setColumn(cusLoc, "cbRoScnCd7", "0");
} else if(cusGb == "C"){
this.testList.setColumn(cusLoc, "cbRoScnCdW", "0");
this.testList.setColumn(cusLoc, "cbRoScnCd7", "0");
} else if(cusGb == "7"){
this.testList.setColumn(cusLoc, "cbRoScnCdW", "0");
this.testList.setColumn(cusLoc, "cbRoScnCdC", "0");
}
}
}
|
cs |
넥사크로 웹브라우저(webBrowser) 사용법 (0) | 2021.06.29 |
---|---|
넥사크로 많이 쓰는 문법 정리 (0) | 2021.06.29 |
넥사크로_자바_SQL_체크박스 다중 값 검색 (0) | 2021.05.21 |
JSTL_forEach문, if문 사용법 (0) | 2021.05.21 |
넥사크로_엑셀 저장하기 (0) | 2021.05.21 |
댓글 영역