//学生信息 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_Save() { $(document.forms[0]).submit(); }