티스토리 뷰

반응형
마이플래폼에서 전으로 / 앞으로 기능, 즉 컨트롤 + Z와 컨트롤 + Y의 기능을 구현
없는 기능을 추가하려고 하니...
딱히 생각나지 않아서
배열에 담고 카운팅으로 기능을 구현했다.

Onkeydown 부분

function fn_NextnPre_Onkeydown(nChar,bCtrl,objGrid,objds)
{
	var Grid = object(objGrid);
	var ds = object(objds);

	if(bCtrl == 1 && nChar == 90) { // 컨트롤제트 기능 구현
		http.Sync = true;
			count = count - 1;
		http.Sync = false;
		if (arrcell[count] = null)
		{
			alert("더이상 취소할 수 없습니다.");
			count = 0;
		}else{
			strColID = Grid.GetCellProp("body",arrcell[count],"colid");
	
			ds.SetColumn(arrrow[count],strColID,arrpretext[count]);
		}
	} else if(bCtrl == 1 && nChar == 89) { // 컨트롤와이 기능 구현
		if (arrcell[count] = null)
		{
			alert("더이상 진행 사항이 없습니다.");
			count = count - 1;
		}else{
			strColID = Grid.GetCellProp("body",arrcell[count],"colid");
	
			ds.SetColumn(arrrow[count],strColID,arrposttext[count]);

			count = count + 1;
		}
	}
}


OnChar부분
var count = 0;
var arrposttext = Array();
var arrpretext = Array();
var arrcell = Array();
var arrrow = Array();

function fn_NextnPre_OnChar(strPreText,strPostText,nRow,nCell)
{
	arrposttext[count] = strPostText;
	arrpretext[count] = strPreText;
	arrrow[count] = nRow;
	arrcell[count] = nCell;

	count = count + 1;
}


반응형
댓글
반응형
최근에 올라온 글
최근에 달린 댓글
«   2024/05   »
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