123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/InventoryManagement/List";
- var mnu = "";
- var InventoryUrl = CMS_SystemConfig.VirtualDirectoryPath + "/InventoryManagement/InventoryDetail";
- var StockInUrl = CMS_SystemConfig.VirtualDirectoryPath + "/InventoryManagement/StockInDetail";
- var StockOutUrl = CMS_SystemConfig.VirtualDirectoryPath + "/InventoryManagement/StockOutDetail";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- reload();
- })
- function reload() {
- $("#dgInventoryManagementList").cmsXDataTable("load", $.getDataGridParams("dgInventoryManagementList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgInventoryManagementList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.TeachingMaterialPoolID);
- });
- return d;
- }
- //Excel导出
- function InventoryManagement_Export() {
- $("#formQuery").submit();
- }
- //刷新库存
- function InventoryManagement_Add() {
- $.messager.confirm("系统提示", "是否刷新库存统计信息?", function (r) {
- if (r) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/InventoryManagement/Edit', { reloadType: "Add" }, function (data) {
- if (data == "成功") {
- $.messager.alert("系统提示", "刷新成功!");
- $("#dgInventoryManagementList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- }
- /*------------------------分------割-------线-----------------------*/
- //库存明细
- function InventoryDetail(rowindex, rowdata) {
- var redirectTo = InventoryUrl + "?teachingMaterialPoolID=" + rowdata.TeachingMaterialPoolID + "&MNU=" + mnu;
- $.popupTopWindow("库存明细", redirectTo, 800, 600, null, null);
- }
- //入库明细
- function StockInDetail(rowindex, rowdata) {
- var schoolyearIDStr = $("#SchoolYearDropdown").combobox("getValue");
- var redirectTo = StockInUrl + "?teachingMaterialPoolID=" + rowdata.TeachingMaterialPoolID + "&schoolyearID=" + schoolyearIDStr + "&discountPrice=" + rowdata.DiscountPrice + "&MNU=" + mnu;
- $.popupTopWindow("入库明细", redirectTo, 800, 600, null, null);
- }
- //出库明细
- function StockOutDetail(rowindex, rowdata) {
- var schoolyearIDStr = $("#SchoolYearDropdown").combobox("getValue");
- var redirectTo = StockOutUrl + "?teachingMaterialPoolID=" + rowdata.TeachingMaterialPoolID + "&schoolyearID=" + schoolyearIDStr + "&discountPrice=" + rowdata.DiscountPrice + "&MNU=" + mnu;
- $.popupTopWindow("出库明细", redirectTo, 800, 600, null, null);
- }
- /*------------------------分------割-------线------End-------------*/
- //学年
- function QuerySchoolYearDropdownList(data) {
- reload();
- }
- //教材类型
- function QueryTeachingMaterialTypeDropdownList(data) {
- reload();
- }
- //教材名称
- function QueryTeachingMaterialDropdownList(data) {
- reload();
- }
- //出版单位
- function QueryPublishDropdownList(data) {
- reload();
- }
|