IT & programming/Miplatform
마이플랫폼 전으로 / 앞으로 기능 추가
찬파
2016. 1. 6. 12:14
반응형
마이플래폼에서 전으로 / 앞으로 기능, 즉 컨트롤 + Z와 컨트롤 + Y의 기능을 구현
없는 기능을 추가하려고 하니...
딱히 생각나지 않아서
배열에 담고 카운팅으로 기능을 구현했다.
Onkeydown 부분
OnChar부분
없는 기능을 추가하려고 하니...
딱히 생각나지 않아서
배열에 담고 카운팅으로 기능을 구현했다.
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;
}