//加载 $(function () { var credit = $("#Credit").val(); if (credit == null || credit == "") { $("#Credit").val(""); } else { $("#Credit").val(parseFloat(credit)); } var validityParticipateRate = $("#ValidityParticipateRate").val(); if (validityParticipateRate == null || validityParticipateRate == "") { $("#ValidityParticipateRate").val(""); } else { $("#ValidityParticipateRate").val(parseFloat(validityParticipateRate).toFixed(1)); } }); //保存 function EvaluationStudentSettingScore_Save() { $(document.forms[0]).submit(); } //设置列颜色为红色 function SetRedColumn(index, row, value) { return " " + value + ""; } //联动 function queryEvaluationParticipateType(data) { var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue"); if (evaluationParticipateTypeID == "" || evaluationParticipateTypeID == "-1" || evaluationParticipateTypeID == null) { $("#EvaluationTableID").combogridX("setValue", "-1"); } var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})"; $("#EvaluationTableID").combogridX("reload", eval(jsonString)); } function queryEvaluationTable(data) { var evaluationTableID = $("#EvaluationTableID").combogridX("getValue"); if (evaluationTableID == "" || evaluationTableID == "-1" || evaluationTableID == null) { $("#EvaluationParticipateTypeID").combogridX("setValue", "-1"); } else { $("#EvaluationParticipateTypeID").combogridX("setValue", data.EvaluationParticipateTypeID); } var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})"; $("#EvaluationTableID").combogridX("reload", eval(jsonString)); }