//学生信息 function queryStudent(data) { var userID = $("#UserID").combogridX("getValue"); if (userID == "" || userID == "-1" || userID == null) { $("#Name").val(""); $("#SexID").combogridX("setValue", "-1"); $("#ClassmajorID").combogridX("setValue", "-1"); $("#InSchoolStatusID").combogridX("setValue", "-1"); } else { $("#Name").val(data.Name); $("#SexID").combogridX("setValue", data.SexID); $("#ClassmajorID").combogridX("setValue", data.ClassmajorID); $("#InSchoolStatusID").combogridX("setValue", data.InSchoolStatusID); } } //设置列颜色为红色 function SetRedColumn(index, row, value) { return " " + value + ""; } //提交(撤销) function StudentPunish_CancelSubmit() { $(document.forms[0]).submit(); }