123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/TeachersConfirmOrder/BatchSetPreAddedValue";
- var DetailUrl = CMS_SystemConfig.VirtualDirectoryPath + "/TeachersConfirmOrder/Detail";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgTeachersConfirmOrderList").cmsXDataTable("load", $.getDataGridParams("dgTeachersConfirmOrderList"));
- }
- //预加分
- function TeachersConfirmOrder_Add() {
- var d = validChoose().join(',');
- var tmps = validChooseTmp().join(',');
- var years = validChooseYear().join(',');
- var c = validChooseobj();
- var orderJsonStr = JSON.stringify(c);
- if (d.length == "") {
- $.messager.alert("系统提示", "请选择您预设置的信息!");
- return;
- }
- $.popupTopWindow('预加设置信息', CMS_SystemConfig.VirtualDirectoryPath + '/TeachersConfirmOrder/BatchSetPreAddedValue?MNU=' + mnu, 380, 150, null, orderJsonStr);
- }
- function Announcement_RoleAdd_Confirm(resultData) {
- var c = validChooseobj();
- var orderJsonStr = JSON.stringify(c);
- if (resultData != undefined) {
- var d = resultData[0];
- var de = resultData[1];
- var d1 = validChoose().join(",");
- var schoolyearID = resultData[2];
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/TeachersConfirmOrder/BatchSetPreAddedValue', { orderJsonStr: orderJsonStr }, function (data) {
- if (data == "操作成功") {
- $.messager.alert("系统提示", "操作成功!");
- $("#dgTeachersConfirmOrderList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- }
- //点击征订明细记录
- function TeachersOrderDetail(rowindex, rowdata) {
- var redirectTo = DetailUrl + '?TeachersOrderID=' + rowdata.TeachersOrderID + '&teachingMaterialPoolID=' + rowdata.TeachingMaterialPoolID + '&schoolYearID=' + rowdata.SchoolyearID + '&MNU=' + mnu;
- $.popupTopWindow('征订清单明细', redirectTo, 800, 600, null, null);
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgTeachersConfirmOrderList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.TeachersOrderID);
- });
- return d;
- }
- //获取选中的数据年度
- function validChooseYear() {
- var d = [];
- $.each($("#dgTeachersConfirmOrderList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.SchoolyearID);
- });
- return d;
- }
- //获取选中的数据总库
- function validChooseTmp() {
- var d = [];
- $.each($("#dgTeachersConfirmOrderList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.TeachingMaterialPoolID);
- });
- return d;
- }
- //获取选中的数据
- function validChooseobj() {
- var d = [];
- $.each($("#dgTeachersConfirmOrderList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function TeachersConfirmOrder_Export() {
- $("#formQuery").submit();
- }
- function TeachersConfirmOrder_Excel()
- {
- $("#formQuery").submit();
- }
- function TeachersOrder_Export() {
- $("#formQuery").submit();
- }
- function QueryPublishDropdownList(data) {
- reload();
- }
- function QueryCourseDropdownList(data) {
- reload();
- }
- function QuerySchoolYearDropdownList(data) {
- reload();
- }
- function QueryCollegeDropdownList(data) {
- reload();
- }
- function QueryStatusDropdownList(data) {
- reload();
- }
- function QueryTeachingMaterialDropdownList(data)
- {
- reload();
- }
|