cbo.js

var frmObj;
/**
 * ページロード時の処理
 */
function initPage() {
    if (this == document.SCCBO0110Form) {
        frmObj = document.SCCBO0110Form;
 } else if (this == document.SCCBO0115Form) {
  frmObj = document.SCCBO0115Form;
 } else if (this == document.SCCBO0210Form) {
        frmObj = document.SCCBO0210Form;
    } else if (this == document.SCCBO0220Form) {
        frmObj = document.SCCBO0220Form;
    } else if (this ==document.SCCBO0240Form) {
     frmObj = document.SCCBO0240Form;
    } else if (this ==document.SCCBO0250Form) {
     frmObj = document.SCCBO0250Form;
    } else if (this == document.SCCBO0230Form) {
     frmObj = document.SCCBO0230Form; 
    } else if (this == document.SCCBO0235Form) {
     frmObj = document.SCCBO0235Form;
    } else if (this == document.SCCBO0290Form) {
     frmObj = document.SCCBO0290Form;
     setAllComma();
    } else if (this == document.SCCBO0295Form) {
     frmObj = document.SCCBO0295Form;
     setAllComma();
    } else if (this == document.SCCBO0310Form) {
     frmObj = document.SCCBO0310Form;
    } else if (this == document.SCCBO0212Form) {
     frmObj = document.SCCBO0212Form;
    } else if (this == document.SCCBO0215Form) {
     frmObj = document.SCCBO0215Form;
    } else if (this == document.SCCBO0213Form) {
     frmObj = document.SCCBO0213Form;
    } else if (this == document.SCCBO0225Form) {
     frmObj = document.SCCBO0225Form;
    } else if (this == document.SCCBO0211Form) {
     frmObj = document.SCCBO0211Form;
    }
}

/**
 * アクションをサブミットする処理
 */
function submitCBOForm(modeAction) {
 frmObj.modeAction.value = modeAction;
 submitted = true;
 frmObj.submit();
 
}
//処理状況確認画面(SCCBO0310)
function download(selectProcessNumber,modeAction) {
 frmObj.processNumber.value = selectProcessNumber;
 frmObj.modeAction.value = modeAction;
 frmObj.submit();
}
// すべて 付与済 未付与(SCCBO0220,SCCBO0225)
function changeStatus(modeAction) {
 frmObj.modeDisplay.value = modeAction;
 submitCBOForm(modeAction)
}

//「評定点データの読み込み」ボタンを押下時(SCCBO0220,SCCBO0225)
function clickBtnImport(modeAction){
 alert("MSAC3021-I:インポートした評定点データは、貸出中の全実績を対象に一括入力されます。");
 submitCBOForm(modeAction); 
}
//「未入力に戻す」ボタンを押下時(SCCBO0220,SCCBO0225)
function clickBtnClear(selectRegistrationNumber,selectRatingPointId,selectInputKbn){
 if (confirm('MSAC3006-W:入力された評定点をクリアしますがよろしいですか。')) {
  frmObj.inputKbn.value = selectInputKbn;
  frmObj.registrationNumber.value = selectRegistrationNumber;
  frmObj.ratingPointId.value = selectRatingPointId;
  submitCBOForm('clear');
 }
}
//入力(工事)
function clickBtnInput(selectRegistrationNumber, selectStyleIdCode, modeAction){
 frmObj.registrationNumber.value = selectRegistrationNumber;
 frmObj.styleIdCode.value = selectStyleIdCode;
 submitCBOForm(modeAction);
}
// 候補選択
function clickBtnSelect(selectRegistrationNumber, modeAction){
 frmObj.registrationNumber.value = selectRegistrationNumber;
 submitCBOForm(modeAction); 
}
// 「実績データを元に戻す」ボタンを押下時
function clickBtnCancel(modeAction){
 frmObj.modeDisplay.value = "allInput";
 submitCBOForm(modeAction);
}
// 「評定点データ更新」ボタンを押下時
function clickBtnUpdate(modeAction){
 if (confirm('MSAC3000-W:入力された評定点を更新して全実績を返却いたしますがよろしいですか。')) {
  submitCBOForm(modeAction);
 }
}
// 「実績データ返却」ボタンを押下時
function clickBtnReturn(modeAction){
 if (confirm('MSAC3001-W:入力された評定点を更新せずに全実績を返却いたしますがよろしいですか。')) {
  submitCBOForm(modeAction);
 }
}

//「評定点データの読み込み 」ボタンを押下時
function importFile(modeAction) {
 if (confirm('MSAC3022-W:この内容でインポートします。すでにインポートされたファイルはクリアされますがよろしいですか。')){
  submitCBOForm(modeAction);
 }
}
/**
 * removeHyphen
 * @param {type} strObj
 */
function removeHyphen(strObj) {
     var regex = /-/g;
    if (strObj != null) {
        return strObj.replace(regex, "");
    }
}
/**
 * Trim string.
 */
function trimString (strObj) {
 if (strObj != null) {
  return strObj.replace(/^/s+|/s+$/g, '');
 } else {
  return strObj;
 }
}
// 項目別評定点(工事)画面を開く
function viewSCCBO0260(selectRegistrationNumber, selectRatingPointId, selectStyleIdCode, modeDisplay) {
 window["registrationNumber"] = removeHyphen(trimString(selectRegistrationNumber));
 window["ratingPointId"] = removeHyphen(trimString(selectRatingPointId));
 window["styleIdCode"] = removeHyphen(trimString(selectStyleIdCode));
 window["modeDisplay"] = modeDisplay;
 var windowId = window["registrationNumber"];
 window["forwardId"] = "SCCBO0260";
 window.open('SCCBO0260_POPUP.do', windowId, 'location=no,menubar=yes,status=no,toolbar=yes,scrollbars=yes,titlebar=yes,top=0,left=0,width=1024,height=768,resizable=yes').focus();
}
// 項目別評定点(業務)画面を開く
function viewSCCBO0265(selectRegistrationNumber, selectRatingPointId, selectStyleIdCode, modeDisplay) {
 window["registrationNumber"] = removeHyphen(trimString(selectRegistrationNumber));
 window["ratingPointId"] = removeHyphen(trimString(selectRatingPointId));
 window["styleIdCode"] = removeHyphen(trimString(selectStyleIdCode));
 window["modeDisplay"] = modeDisplay;
 var windowId = window["registrationNumber"];
 window["forwardId"] = "SCCBO0265";
 window.open('SCCBO0265_POPUP.do', windowId, 'location=no,menubar=yes,status=no,toolbar=yes,scrollbars=yes,titlebar=yes,top=0,left=0,width=1024,height=768,resizable=yes').focus();
}
// 工事実績データ(詳細)画面を開く
function viewSCCBO0270(selectRegistrationNumber) {
 window["registrationNumber"] = removeHyphen(trimString(selectRegistrationNumber));
 var windowId = window["registrationNumber"];
 window["forwardId"] = "SCCBO0270";
 window.open('SCCBO0270_POPUP.do', windowId, 'location=no,menubar=yes,status=no,toolbar=yes,scrollbars=yes,titlebar=yes,top=0,left=0,width=1024,height=768,resizable=yes').focus();
}
// 業務実績データ(詳細)画面を開く
function viewSCCBO0280(selectRegistrationNumber) {
 window["registrationNumber"] = removeHyphen(trimString(selectRegistrationNumber));
 var windowId = window["registrationNumber"];
 window["forwardId"] = "SCCBO0280";
 window.open('SCCBO0280_POPUP.do', windowId, 'location=no,menubar=yes,status=no,toolbar=yes,scrollbars=yes,titlebar=yes,top=0,left=0,width=1024,height=768,resizable=yes').focus();
}
function setRatingPointIdAndCondition(selectRatingPointId, selectCondition) {
 frmObj.ratingPointId.value = selectRatingPointId;
 frmObj.condition.value = selectCondition;
}
/**
 * SCCBO0110アクションをサブミットする処理
 */
function Search(modeAction) {
 if(!validateSCCBO0110Form(frmObj)) {
  return false;
 }
 frmObj.modeAction.value = modeAction;
 submitted = true;
 frmObj.submit();
}

/**
 * SCCBO0115アクションをサブミットする処理
 */
function SearchSCCBO0115(modeAction) {
 if(!validateSCCBO0115Form(frmObj)) {
  return false;
 }
 frmObj.modeAction.value = modeAction;
 submitted = true;
 frmObj.submit();
}

/**
 * SCCBO0290アクションをサブミットする処理
 */
function doSearchSCCBO0290(modeAction) {
 supAllComma();
 if(!validateSCCBO0290Form(frmObj)) {
  setAllComma();
  return false;
 }
 frmObj.modeAction.value = modeAction;
 submitted = true;
 frmObj.submit();
}

/**
 * SCCBO0295アクションをサブミットする処理
 */
function doSearchSCCBO0295(modeAction) {
 supAllComma();
 if(!validateSCCBO0295Form(frmObj)) {
  setAllComma();
  return false;
 }
 frmObj.modeAction.value = modeAction;
 submitted = true;
 frmObj.submit();
}

/**
 * 入力が1桁の場合、0埋めを行う
 */
function formatDate(obj) {
    if (obj.value.length == 1) {
         obj.value = "0" + obj.value;
    }
}

function setSelect(selectProcessNumber) {
 frmObj.processNumber.value = selectProcessNumber;
}

/**
 *選択ボタン押下時 (SCCBO230)
 */
function selectRatingPoint(selectCondition) {
 if (selectCondition == 3) {
  if (confirm('MSAC3009-W:他の実績にて選択されている評定点を選択しようとしています。選択すると、他の実績からは未選択の状態となります。よろしいですか。')) {
   submitCBOForm("select");
  }
 } else {
  submitCBOForm("select");
 }
 
}

/**
 *削除ボタン押下時 (SCCBO240)
 */
function deleteRatingPoint() {
 if (confirm('MSAC3011-W:すでに付与されている評定点を削除します。よろしいですか。')) {
  submitCBOForm("delete");
 }
}

/**
 * 結合処理ボタン押下時
 */
function combineDeal() {
 if (confirm('MSAC3017-W:この内容で一括入力します。すでに入力された評定点はクリアされますがよろしいですか。')) {
  submitCBOForm('save');
 }
}
/**
 *閉じるボタン押下時
 */
function closeWindow() {
 if (confirm("MSAC0031-W:この画面を閉じますがよろしいですか?")) {
  window.close();
 } else {
  return false;
 }
}
function preventFormEditToInputFile(){
  var keycode, shift, ctrl, alt;
  // キーコード及びctrl、shift、alt有無を取得
    if (event.which) {
        keycode = event.which;
        ctrl  = typeof event.modifiers == 'undefined' ? event.ctrlKey  : event.modifiers & Event.CONTROL_MASK;
        shift = typeof event.modifiers == 'undefined' ? event.shiftKey : event.modifiers & Event.SHIFT_MASK;
        alt   = typeof event.modifiers == 'undefined' ? event.altKey   : event.modifiers & Event.ALT_MASK;
    } else {
        keycode = event.keyCode;
        ctrl    = event.ctrlKey;
        shift   = event.shiftKey;
        alt     = event.altKey;
    }
  if (keycode == 8 || keycode == 46) {
    return false;
  } else if(ctrl) {
   if (keycode == 86 || keycode == 88) {
    return false;
   }
  }
  return true;
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了小程序应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值