12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/TeachingMateriaInventory/List";
- var EditUrl = CMS_SystemConfig.VirtualDirectoryPath + "/TeachingMateriaInventory/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgTeachingMateriaInventoryList").cmsXDataTable("load", $.getDataGridParams("dgTeachingMateriaInventoryList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgTeachingMateriaInventoryList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.TeachingMaterialPoolID);
- });
- return d;
- }
- //Excel导出
- function TeachingMateriaInventory_Export() {
- $("#formQuery").submit();
- }
- //修改按钮
- function TeachingMateriaInventory_Update() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要修改的教材信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = EditUrl + '?teachingMaterialPoolID=' + d + '&MNU=' + mnu;
- $.popupTopWindow('教材基本信息', redirectTo, 800, 600, null, null);
- }
- //选中学年事件
- function QueryLibraryDropdownList(data) {
- reload();
- }
- function QueryPublishDropdownList(data) {
- reload();
- }
- function QueryCourseDropdownList(data) {
- reload();
- }
- function QueryLateDropdownList(data) {
- reload();
- }
- function QueryTeachingMaterialDropdownList(data) {
- reload();
- }
- function QueryTeachingMaterialTypeDropdownList()
- {
- reload();
- }
|