示例#1
0
        public virtual void ExportXLS(com.Sconit.Control.GridView GV_List, string fileName)
        {
            if (GV_List.FindPager().RecordCount > 5000)
            {
                ShowWarningMessage("Common.Export.Warning.GreatThan5000", GV_List.FindPager().RecordCount.ToString());
            }

            if (GV_List.FindPager().RecordCount == 0)
            {
                this.ShowWarningMessage("Common.GridView.NoRecordFound");
            }
            else
            {
                GV_List.ExportXLS(fileName);
            }
        }
 protected void ExportDOC(com.Sconit.Control.GridView GV_List, String FileName)
 {
     if (GV_List.FindPager().RecordCount == 0)
     {
         this.ShowWarningMessage("Common.GridView.NoRecordFound");
     }
     else
     {
         if (FileName == null || FileName.Length == 0)
         {
             FileName = "export.doc";
         }
         GV_List.ExportDOC(FileName);
     }
 }