EvaluationTargetEdit.js 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. //保存
  2. function EvaluationTarget_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. }
  15. var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
  16. $("#EvaluationTableID").combogridX("reload", eval(jsonString));
  17. }
  18. function queryEvaluationTable(data) {
  19. var evaluationTableID = $("#EvaluationTableID").combogridX("getValue");
  20. if (evaluationTableID == "" || evaluationTableID == "-1" || evaluationTableID == null) {
  21. $("#EvaluationParticipateTypeID").combogridX("setValue", "-1");
  22. }
  23. else {
  24. $("#EvaluationParticipateTypeID").combogridX("setValue", data.EvaluationParticipateTypeID);
  25. }
  26. var evaluationParticipateTypeID = $("#EvaluationParticipateTypeID").combogridX("getValue");
  27. var jsonString = "({'QueryParamsDatas':'EvaluationParticipateTypeDropdown|*|" + evaluationParticipateTypeID + "|@|'})";
  28. $("#EvaluationTableID").combogridX("reload", eval(jsonString));
  29. }