SOCStudentList.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. var mnu = "";
  2. //加载
  3. $(function () {
  4. mnu = $.SystemGeneral.getUrlParam("MNU");
  5. });
  6. function validChoose() {
  7. var d = [];
  8. $.each($("#dgSOCStudentList").cmsXDataTable("getSelections"), function (index) {
  9. d.push(this);
  10. });
  11. return d;
  12. }
  13. function reload() {
  14. $("#dgSOCStudentList").cmsXDataTable("load", $.getDataGridParams("dgSOCStudentList"));
  15. }
  16. function queryCourse() {
  17. try {
  18. var schoolyearID = $("#ddlSchoolyear").combobox("getValue");
  19. var jsonString = "({'QueryParamsDatas':'";
  20. if (schoolyearID != nonSelect) {
  21. jsonString += "Schoolyear|*|" + schoolyearID + "|@|";
  22. }
  23. jsonString += "'})";
  24. $("#cgbCourse").combogridX("reload", eval(jsonString));
  25. } catch (e) {
  26. }
  27. }
  28. function remark(rowIndex, rowValue) {
  29. var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/Remark?MNU=' + mnu;
  30. $.popupTopWindow('修改意见', redirectTo, 500, 350, null, rowValue.Remark);
  31. }
  32. function SOCStudent_Submit() {
  33. var data = $.map(validChoose(), function (x) { return { SOCDetailID: x.SOCDetailID, SOCDetailGroupID: x.SOCDetailGroupID } });
  34. var dataString = JSON.stringify(data);
  35. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/StudentSubmit', { socDetailSubmitViews: dataString }, function (data) {
  36. $.messager.alert("系统提示", data.Message);
  37. if (data.IsSuccess == true) {
  38. $("#dgSOCStudentList").cmsXDataTable('load');
  39. }
  40. });
  41. }
  42. function upload(rowIndex, rowData) {
  43. $.popupTopWindow('成果管理', CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/StudentAttachmentList?MNU=' + mnu + '&socDetailID=' + rowData.SOCDetailID + '&socDetailGroupID=' + rowData.SOCDetailGroupID, 480, 320);
  44. }
  45. function showDetail(rowIndex, rowData) {
  46. $.popupTopWindow('成果详情', CMS_SystemConfig.VirtualDirectoryPath + '/SOC/StudentSOCDetail?MNU=' + mnu + '&socDetailID=' + rowData.SOCDetailID, 800, 600);
  47. }