123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //加载
- $(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 queryGrademajor(data) {
- var grademajorID = $("#GrademajorID").combogridX("getValue");
- if (grademajorID == "" || grademajorID == "-1" || grademajorID == null) {
- $("#GradeID").combogridX("setValue", "-1");
- $("#StandardID").combogridX("setValue", "-1");
- $("#StandardCode").val("");
- $("#EducationID").combogridX("setValue", "-1");
- $("#LearningformID").combogridX("setValue", "-1");
- $("#LearnSystem").val("");
- $("#CollegeID").combogridX("setValue", "-1");
- }
- else {
- $("#GradeID").combogridX("setValue", data.GradeID);
- $("#StandardID").combogridX("setValue", data.StandardID);
- $("#StandardCode").val(data.StandardCode);
- $("#EducationID").combogridX("setValue", data.EducationID);
- $("#LearningformID").combogridX("setValue", data.LearningformID);
- $("#LearnSystem").val(data.LearnSystem);
- $("#CollegeID").combogridX("setValue", data.CollegeID);
- }
- }
- //保存
- function EvaluationGradeControl_Save() {
- $(document.forms[0]).submit();
- }
|