public override ActionResult DataList_ReturnExportClick(string PanelID, string selection = "")
        {
            if (selection == "")
            {
                X.Msg.Alert("注意", "请先选择需要导出的报表!").Show();
                return(this.Direct());
            }
            else
            {
                ReportInfoDataListManage man   = new ReportInfoDataListManage();
                List <tblReportInfo>     model = man.GetSpecialModelFromCurrentSelection(selection);

                if ((model != null) && (model.Count > 0))
                {
                    string      sAddress       = ConstAddressPath.REPORT_WEBPATH;
                    string      sWholeFileName = sAddress + model[0].ID + ".xls";
                    FileManager clsFile        = new FileManager();
                    if (clsFile.HasFile(sWholeFileName))
                    {
                        clsFile.DownloadFile(sWholeFileName, model[0].Name + ".xls");
                    }
                    else
                    {
                        X.Msg.Alert("注意", "该报表未正确生成,请重新生成后再下载...").Show();
                        DataList_ReturnDeleteClick(PanelID, selection, null, null);
                        return(this.Direct());
                    }
                }
                DirectResult result = new DirectResult();
                result.IsUpload = true;
                return(result);
            }
        }
        public override ActionResult DataList_ReturnDeleteClick(string PanelID, string selection, string keywords, string transvalue)
        {
            ReportInfoDataListManage man   = new ReportInfoDataListManage();
            List <tblReportInfo>     model = man.GetSpecialModelFromCurrentSelection(selection);

            if ((model != null) && (model.Count > 0))
            {
                for (int c = 0; c < model.Count; c++)
                {
                    man.DeleteRecord(model[c]);
                    FileManager fileMan = new FileManager();
                    //fileMan.DelOneFile(ConstAddressPath.REPORT_WEBPATH + model[0].Name+"("+model[0].ID+")"+".xlsx");
                    fileMan.DelOneFile(ConstAddressPath.REPORT_WEBPATH + model[c].ID + ".xls");
                    RefreashDataList(PanelID);
                }
            }
            return(this.Direct());
        }