12345678910111213141516171819202122232425262728293031 |
- //学生信息
- 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 " <span style=\"color: red;\">" + value + "</span>";
- }
- //提交(审核)
- function StudentPunish_ApproveSubmit() {
- var actionValue = $("#ddlAction").combobox("getValue");
- if (actionValue == "-1" || actionValue == "") {
- $.messager.alert("系统提示", "必须选择一个动作才能提交。");
- return;
- }
- $(document.forms[0]).submit();
- }
|