StudentPunishApprove.js 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. //学生信息
  2. function queryStudent(data) {
  3. var userID = $("#UserID").combogridX("getValue");
  4. if (userID == "" || userID == "-1" || userID == null) {
  5. $("#Name").val("");
  6. $("#SexID").combogridX("setValue", "-1");
  7. $("#ClassmajorID").combogridX("setValue", "-1");
  8. $("#InSchoolStatusID").combogridX("setValue", "-1");
  9. }
  10. else {
  11. $("#Name").val(data.Name);
  12. $("#SexID").combogridX("setValue", data.SexID);
  13. $("#ClassmajorID").combogridX("setValue", data.ClassmajorID);
  14. $("#InSchoolStatusID").combogridX("setValue", data.InSchoolStatusID);
  15. }
  16. }
  17. //设置列颜色为红色
  18. function SetRedColumn(index, row, value) {
  19. return " <span style=\"color: red;\">" + value + "</span>";
  20. }
  21. //提交(审核)
  22. function StudentPunish_ApproveSubmit() {
  23. var actionValue = $("#ddlAction").combobox("getValue");
  24. if (actionValue == "-1" || actionValue == "") {
  25. $.messager.alert("系统提示", "必须选择一个动作才能提交。");
  26. return;
  27. }
  28. $(document.forms[0]).submit();
  29. }