EvaluationStudentSettingEdit.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. });
  10. //保存
  11. function EvaluationStudentSetting_Save() {
  12. $(document.forms[0]).submit();
  13. }
  14. //设置列颜色为红色
  15. function SetRedColumn(index, row, value) {
  16. return " <span style=\"color: red;\">" + value + "</span>";
  17. }
  18. //联动
  19. function queryEvaluationParticipateType(data) {
  20. var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue");
  21. if (evaluationParticipateTypeID == "" || evaluationParticipateTypeID == "-1" || evaluationParticipateTypeID == null) {
  22. $("#EvaluationTableID").combogridX("setValue", "-1");
  23. }
  24. var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
  25. $("#EvaluationTableID").combogridX("reload", eval(jsonString));
  26. }
  27. function queryEvaluationTable(data) {
  28. var evaluationTableID = $("#EvaluationTableID").combogridX("getValue");
  29. if (evaluationTableID == "" || evaluationTableID == "-1" || evaluationTableID == null) {
  30. $("#EvaluationParticipateTypeID").combogridX("setValue", "-1");
  31. }
  32. else {
  33. $("#EvaluationParticipateTypeID").combogridX("setValue", data.EvaluationParticipateTypeID);
  34. }
  35. var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue");
  36. var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
  37. $("#EvaluationTableID").combogridX("reload", eval(jsonString));
  38. }