EvaluationStudentSettingScoreEdit.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //加载
  2. $(function () {
  3. var credit = $("#Credit").val();
  4. if (credit == null || credit == "") {
  5. $("#Credit").val("");
  6. } else {
  7. $("#Credit").val(parseFloat(credit));
  8. }
  9. var validityParticipateRate = $("#ValidityParticipateRate").val();
  10. if (validityParticipateRate == null || validityParticipateRate == "") {
  11. $("#ValidityParticipateRate").val("");
  12. } else {
  13. $("#ValidityParticipateRate").val(parseFloat(validityParticipateRate).toFixed(1));
  14. }
  15. });
  16. //保存
  17. function EvaluationStudentSettingScore_Save() {
  18. $(document.forms[0]).submit();
  19. }
  20. //设置列颜色为红色
  21. function SetRedColumn(index, row, value) {
  22. return " <span style=\"color: red;\">" + value + "</span>";
  23. }
  24. //联动
  25. function queryEvaluationParticipateType(data) {
  26. var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue");
  27. if (evaluationParticipateTypeID == "" || evaluationParticipateTypeID == "-1" || evaluationParticipateTypeID == null) {
  28. $("#EvaluationTableID").combogridX("setValue", "-1");
  29. }
  30. var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
  31. $("#EvaluationTableID").combogridX("reload", eval(jsonString));
  32. }
  33. function queryEvaluationTable(data) {
  34. var evaluationTableID = $("#EvaluationTableID").combogridX("getValue");
  35. if (evaluationTableID == "" || evaluationTableID == "-1" || evaluationTableID == null) {
  36. $("#EvaluationParticipateTypeID").combogridX("setValue", "-1");
  37. }
  38. else {
  39. $("#EvaluationParticipateTypeID").combogridX("setValue", data.EvaluationParticipateTypeID);
  40. }
  41. var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue");
  42. var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
  43. $("#EvaluationTableID").combogridX("reload", eval(jsonString));
  44. }