케이스 'PD':
valueUD = obj.id;
id = objName;
var loadVUD = UserData.load(시험, ID);
if (loadVUD == null || loadVUD == 정의되지 않음 || loadVUD == '') {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
break;
케이스 'DANX':
valueUD = obj.id;
var objName = obj.name;
var objNameTop = objName.substr(0,objName.indexOf('_'));
id = objName;
var loadVUD = UserData.load(시험, ID);
if (loadVUD == null || loadVUD == 정의되지 않음 || loadVUD == '') {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
break;
케이스 'PP':
valueUD = obj.id;
var objName = obj.name;
var objNameTop = objName.substr(0,objName.indexOf('_'));
id = objName;
var loadVUD = UserData.load(시험, ID);
if (loadVUD == null || loadVUD == 정의되지 않음 || loadVUD == '') {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
break;
대소문자 '텍스트':
valueUD = obj.value;
id = "text_" obj.id;
var loadVUD = UserData.load(시험, ID);
if (loadVUD == null) {
if (valueUD == null || valueUD == '') {
반품;
}
else {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
}
else {
if (valueUD == null || valueUD == '') {
UserData.remove(시험, ID);
examAnswerKeyStr = RemoveStrWithcomma(examAnswerKeyStr, id);
UserData.save(examinfo, "examAnswerKeyStr", ExamAnswerKeyStr, 1);
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]]--;
반품;
}
}
break;
case '체크박스':
id = "checkbox_" obj.id.substr(0, obj.id.lastIndexOf('_'));
var key = obj.id.substr(0, obj.id.lastIndexOf('_'));
key = "checkbox_" 키;
valueUD = UserData.load(시험, 키);
var 플래그 = obj.checked;
if (valueUD == null) {
if (플래그) {
id=key;
valueUD = obj.id;
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
}
else {
if (플래그) {
if (valueUD.indexOf(obj.id) == -1) {
valueUD = "," obj.id
}
}
else {
if (valueUD.indexOf(obj.id) != -1) {
if (valueUD.indexOf(',' obj.id) != -1) {
valueUD = valueUD.replace(',' obj.id, '');
}
그밖에
if (valueUD.indexOf(obj.id ',') != -1) {
valueUD = valueUD.replace(obj.id ',', '');
}
else {
UserData.remove(시험, 키);
examAnswerKeyStr = RemoveStrWithcomma(examAnswerKeyStr, key);
UserData.save(examinfo, "examAnswerKeyStr", ExamAnswerKeyStr, 1);
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]]--;
반품;
}
}
}
}
break;
case 'textarea':
valueUD = obj.value;
id = "textarea_" obj.id;
var loadVUD = UserData.load(시험, ID);
if (loadVUD == null) {
if (valueUD == null || valueUD == '') {
반품;
}
else {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
}
else {
if (valueUD == null || valueUD == '') {
UserData.remove(시험, ID);
examAnswerKeyStr = RemoveStrWithcomma(examAnswerKeyStr, id);
UserData.save(examinfo, "examAnswerKeyStr", ExamAnswerKeyStr, 1);
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]]--;
반품;
}
}
break;
기본값:
반품; }