123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/StockInDetail/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgStockInDetailList").cmsXDataTable("load", $.getDataGridParams("dgStockInDetailList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgStockInDetailList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.StockInDetailID);
- });
- return d;
- }
- //修改
- function ET06_05_02_StockInDetail_Update() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要修改的信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = url + '?stockInDetailID=' + d + '&MNU=' + mnu;
- $.popupTopWindow('入库明细修改', redirectTo, 800, 550, null, null);
- }
- //导入
- function ET06_05_02_StockInDetail_Import() {
- }
- //导出
- function ET06_05_02_StockInDetail_Export() {
- $("#formQuery").submit();
- }
- //出库明细列表列表导出
- function StockOutDetail_Export()
- {
- $("#formQuery").submit();
- }
- //删除
- function ET06_05_02_StockInDetail_Delete() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
- if (r) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/StockInDetail/Delete', { stockInDetailIDs: d }, function (data) {
- if (data == "删除成功。") {
- $.messager.alert("系统提示", data);
- $("#dgStockInDetailList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- }
- //添加
- function ET06_05_02_StockInDetail_Add() {
- var redirectTo = url + '?MNU=' + mnu;
- $.popupTopWindow('入库明细添加', redirectTo, 800, 550, null, null);
- }
- //入库明细导出
- function ET06_05_01_StockIn_Detail_Export()
- {
- $("#formQuery").submit();
- }
- function QueryCourseDropdownList() {
- reload();
- }
- function QuerySchoolYearDropdownList() {
- reload();
- }
- function QueryCollegeDropdownList() {
- reload();
- }
- function QueryPublishDropdownList() {
- reload();
- }
|