//加载 $(function () { //非负浮点数(/^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/) var reg = /^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/; var learnSystem = $("#LearnSystem").val(); if (learnSystem == "" || learnSystem == null) { $("#LearnSystem").val(""); } else { if (!reg.test(learnSystem)) { $("#LearnSystem").val(""); } else { $("#LearnSystem").val(parseFloat(learnSystem).toFixed(1)); } } }); //保存 function CustomStandardSetting_Save() { $(document.forms[0]).submit(); } //联动 function querySpecialty(data) { var specialtyID = $("#SpecialtyID").combogridX("getValue"); if (specialtyID == "" || specialtyID == "-1" || specialtyID == null) { $("#StandardCode").val(""); //$("#EducationID").combobox("setValue", "-1"); $("#EducationID").combogridX("setValue", "-1"); $("#LearningformID").combogridX("setValue", "-1"); $("#LearnSystem").val(""); $("#ScienceclassID").combogridX("setValue", "-1"); } else { $("#StandardCode").val(data.Code); $("#EducationID").combogridX("setValue", data.EducationID); $("#LearningformID").combogridX("setValue", data.LearningformID); $("#LearnSystem").val(data.LearnSystem); $("#ScienceclassID").combogridX("setValue", data.ScienceclassID); } }