TrainingClassMerge.js 765 B

123456789101112131415161718192021222324
  1. var windowID;
  2. var trainingClassIDList = [];
  3. $(function () {
  4. windowID = $.SystemGeneral.getUrlParam("WindowID");
  5. trainingClassIDList = top.$('#' + windowID).data("inputData");
  6. var trainingClassIDs = trainingClassIDList.join(',');
  7. $("#TrainingClassIDs").val(trainingClassIDs);
  8. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/TrainingClass/GetMergeName', { trainingClassIDs: trainingClassIDs }, function (data) {
  9. if (data.IsSuccess) {
  10. $("#Name").val(data.Data);
  11. } else {
  12. $.messager.alert("系统提示", data.Message, null, function () {
  13. top.$('#' + windowID).dialog("close");
  14. });
  15. }
  16. });
  17. });
  18. function TrainingClass_Merge() {
  19. $(document.forms[0]).submit();
  20. }