|
|
|
@ -18,33 +18,86 @@ document.onkeydown=function(e) {
|
|
|
|
|
*/
|
|
|
|
|
function fn_securityModeToggle(flag){
|
|
|
|
|
|
|
|
|
|
if(flag){
|
|
|
|
|
if(flag){ //개인정보 숨김
|
|
|
|
|
//인풋
|
|
|
|
|
$(".privacy").attr("hidden","hidden");
|
|
|
|
|
$(".privacy-mask").removeAttr("hidden");
|
|
|
|
|
$("input.privacy").attr("hidden","hidden");
|
|
|
|
|
$("input.privacy-mask").removeAttr("hidden");
|
|
|
|
|
|
|
|
|
|
for(let i=0; i< $(".privacy").length; i++){
|
|
|
|
|
let originId = $(".privacy")[i].id;
|
|
|
|
|
let originValue= $(".privacy")[i].value;
|
|
|
|
|
for(let i=0; i< $("input.privacy").length; i++){
|
|
|
|
|
let originId = $("input.privacy")[i].id;
|
|
|
|
|
let originValue= $("input.privacy")[i].value;
|
|
|
|
|
let maskingValue = originValue.replace(/[0-9a-zA-Z]/g, "*");
|
|
|
|
|
document.getElementById(originId+"$mask").value = maskingValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//TODO:그리드
|
|
|
|
|
//그리드
|
|
|
|
|
//그리드가 1개일 때
|
|
|
|
|
if(!(typeof GRID === 'undefined')) {
|
|
|
|
|
for(let key in GRID.store.column.allColumnMap){
|
|
|
|
|
if(GRID.store.column.allColumnMap[key].className == "privacy"){
|
|
|
|
|
GRID.hideColumn(key, '');
|
|
|
|
|
}
|
|
|
|
|
if(GRID.store.column.allColumnMap[key].className == "privacy-mask"){
|
|
|
|
|
GRID.showColumn(key, '');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//그리드가 여러개일 때
|
|
|
|
|
if(!(typeof ARR_GRID === 'undefined')){
|
|
|
|
|
for(let i=0; i < ARR_GRID.length; i++){
|
|
|
|
|
for(let key in ARR_GRID[i].store.column.allColumnMap){
|
|
|
|
|
if(ARR_GRID[i].store.column.allColumnMap[key].className){
|
|
|
|
|
if(ARR_GRID[i].store.column.allColumnMap[key].className == "privacy"){
|
|
|
|
|
ARR_GRID[i].hideColumn(key, '');
|
|
|
|
|
}
|
|
|
|
|
if(ARR_GRID[i].store.column.allColumnMap[key].className == "privacy-mask"){
|
|
|
|
|
ARR_GRID[i].showColumn(key, '');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else { //개인정보 표시
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
//인풋
|
|
|
|
|
$(".privacy").removeAttr("hidden");
|
|
|
|
|
$(".privacy-mask").attr("hidden","hidden");
|
|
|
|
|
$("input.privacy").removeAttr("hidden");
|
|
|
|
|
$("input.privacy-mask").attr("hidden","hidden");
|
|
|
|
|
|
|
|
|
|
for(let i=0; i< $(".privacy").length; i++){
|
|
|
|
|
let originId = $(".privacy")[i].id;
|
|
|
|
|
let originValue= $(".privacy")[i].value;
|
|
|
|
|
for(let i=0; i< $("input.privacy").length; i++){
|
|
|
|
|
let originId = $("input.privacy")[i].id;
|
|
|
|
|
let originValue= $("input.privacy")[i].value;
|
|
|
|
|
let maskingValue = originValue.replace(/[0-9a-zA-Z]/g, "*");
|
|
|
|
|
document.getElementById(originId+"$mask").value = maskingValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//TODO:그리드
|
|
|
|
|
//그리드
|
|
|
|
|
//그리드가 1개일 때
|
|
|
|
|
if(!(typeof GRID === 'undefined')){
|
|
|
|
|
for(let key in GRID.store.column.allColumnMap){
|
|
|
|
|
if(GRID.store.column.allColumnMap[key].className == "privacy"){
|
|
|
|
|
GRID.showColumn(key, '');
|
|
|
|
|
}
|
|
|
|
|
if(GRID.store.column.allColumnMap[key].className == "privacy-mask"){
|
|
|
|
|
GRID.hideColumn(key, '');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//그리드가 여러개일 때
|
|
|
|
|
if(!(typeof ARR_GRID === 'undefined')){
|
|
|
|
|
for(let i=0; i < ARR_GRID.length; i++){
|
|
|
|
|
for(let key in ARR_GRID[i].store.column.allColumnMap){
|
|
|
|
|
if(ARR_GRID[i].store.column.allColumnMap[key].className){
|
|
|
|
|
if(ARR_GRID[i].store.column.allColumnMap[key].className == "privacy"){
|
|
|
|
|
ARR_GRID[i].showColumn(key, '');
|
|
|
|
|
}
|
|
|
|
|
if(ARR_GRID[i].store.column.allColumnMap[key].className == "privacy-mask"){
|
|
|
|
|
ARR_GRID[i].hideColumn(key, '');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//재귀 호출
|
|
|
|
|