StudentEncourageEdit.js 840 B

1234567891011121314151617181920212223242526
  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 StudentEncourage_Save() {
  23. $(document.forms[0]).submit();
  24. }