clearingpoint-addorupdate.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. function openUserSelect() {
  2. $.dialog({
  3. content: 'url:ClearingPointController.do?CleanSelect',
  4. zIndex: getzIndex(),
  5. title: '清运点选择',
  6. lock: true,
  7. width: '850px',
  8. height: '650px',
  9. opacity: 0.4,
  10. button: [
  11. {
  12. name: '确定', callback: function () {
  13. const iframe = this.iframe.contentWindow;
  14. if (iframe.getReason().length > 0) {
  15. const strData = eval(iframe.getReason());
  16. for (const key in strData[0]) {
  17. if (key === "strId") {
  18. $("#id").val(strData[0][key]);
  19. } else if (key === "strName") {
  20. $("#name").val(strData[0][key]);
  21. }
  22. }
  23. $("#name").focus();
  24. }
  25. }, focus: true
  26. },
  27. {
  28. name: '取消', callback: function () {
  29. }
  30. }
  31. ]
  32. }).zindex();
  33. }
  34. function callbackCleanUser() {
  35. $('#name').val('');
  36. $('#id').val('');
  37. }