EvaluationProjectEdit.js 2.3 KB

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