123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgRetakePlanList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function reload() {
- $("#dgRetakePlanList").cmsXDataTable("load", $.getDataGridParams("dgRetakePlanList"));
- }
- function RetakePlan_Apply(rowIndex, rowData) {
- var coursematerialID = rowData.CoursematerialID;
- var retakePlanStudentID = rowData.RetakePlanStudentID;
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/RetakPlan/CheckCanSubmit', { retakePlanStudentID: retakePlanStudentID },
- function (data) {
- if (data.IsSuccess) {
- $.popupTopWindow('重修申请', CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlan/SelectMission?MNU=' + mnu + '&coursematerialID=' + coursematerialID, 800, 600, RetakePlan_Apply_Confirm, retakePlanStudentID);
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- function RetakePlan_Apply_Confirm(data) {
- var retakePlanStudentID = data.retakePlanStudentID;
- var educationMission = data.educationMission;
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlan/Submit', { retakePlanStudentID: retakePlanStudentID, educationMissionID: educationMission.EducationMissionID }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", "提交成功。");
- reload();
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
|