var formId = "kau40400form"; var myClassName = "jp.co.toshiba_sol.generalist.prshaho.kau40400.KAU40400Entry"; var objBtn_OK = null; var objOK = null; var santeiSaishuMonth = null; function init() { GbInit(); GbDspInitMsg(formId); // 2度押しチェック変数のクリア GbResetBusy(); GbGetObj(formId, "santeiSaishuMonth").focus(); } function chkSanteiMonth(obj,labelValue) { //NULLチェック/形式チェック if (GbChkDateObj(obj, 1, labelValue,2) == false) { GbvalidateSet(obj); return false; } else { var tekiyoMonth = GbGetObj(formId, "tekiyoMonth"); var tekiyoMonth1 = GbGetObj(formId, "tekiyoMonth_1"); var tekiyoMonth2 = GbGetObj(formId, "tekiyoMonth_2"); var tekiyoMonth5 = GbGetObj(formId, "tekiyoMonth_5"); if (tekiyoMonth.value == null || tekiyoMonth.value == ""){ var dsp = GbGetObj(formId, "santeiSaishuMonth_1"); var rtnAJax = GbSendUserAJax(myClassName,"setTekiyoMonth",dsp.value,null,null,null); tekiyoMonth1.value = rtnAJax[0]; tekiyoMonth5.value = rtnAJax[1]; tekiyoMonth.value = rtnAJax[2]; tekiyoMonth2.value = 0; } } } function chkIkukyufukushokuTo(obj,labelValue,labelValue2) { //NULLチェック/形式チェック if (GbChkDateObj(obj, 1, labelValue,2) == false) { GbvalidateSet(obj); return false; } else { var ikukyufukushokuFrom = GbGetObj(formId, "ikukyufukushokuFrom"); if (ikukyufukushokuFrom.value != "" || ikukyufukushokuFrom.value != null) { if (GbChkDateObj(ikukyufukushokuFrom, 1, labelValue2, 2, "ymd") == false) { GbvalidateSet(ikukyufukushokuFrom); return false; } else { data1 = GbGetGeneDateToRealObj(ikukyufukushokuFrom).value; data2 = GbGetGeneDateToRealObj(obj).value; } } if (data1 != "" && data2 != "") { if (dateCompare(data1, data2, "yyyymmdd") > 0) { alertMessage("P0007869"); GbvalidateSet(GbGetObj(formId, "ikukyufukushokuFrom")); return false; } } } } function okSelect(){ document.getElementById("kau40400form:Btn_Select").click(); } function btnCancel(){ document.getElementById("kau40400form:Btn_Cancelhide").click(); } function doSubmit() { if (!GbCheckBusy()) { return false; } copySelectState("btnSoshiki","kau40400form:BtnFlag"); return true; }