예제 #1
0
 /// <summary>
 /// ִ�е���
 /// </summary>
 public void ExeExport()
 {
     string _strOutPutType = string.Empty, _strExceltPath = string.Empty, _strDbfPath = string.Empty;
     _strOutPutType = m_strExportType;
     _strExceltPath = m_strExcelPath;
     _strDbfPath = m_strDbfPath;
     IExport ie = null;
     switch (_strOutPutType)
     {
         case PublicProperty.CExportDB:
             ie = new ExportDB();
             PublicProperty.ExportParam[0] = m_dsAllPatsInfo;
             break;
         case PublicProperty.CExportDBF:
             ie = new ExportDBF();
             PublicProperty.ExportParam[0] = _strDbfPath;
             PublicProperty.ExportParam[1] = m_dsAllPatsInfo;
             break;
         case PublicProperty.CExportExcel:
             ie = new ExportExcel();
             PublicProperty.ExcelPath = _strExceltPath;
             //PublicProperty.ExcelSource = m_dsAllPatsInfo;
             break;
         default:
             break;
     }
     ie.Export();
 }
예제 #2
0
        /// <summary>
        /// 执行导出
        /// </summary>
        public static void ExeExport(DataTable p_dtOnePatInfo)
        {
            IExport ie             = null;
            string  _strExportType = PublicVar.m_strExportType;

            //RemoteMessage.SendMessage("==导出方式" + _strExportType + "...");
            switch (_strExportType)
            {
            case "DB":
                ie = new SingleObjectDBExport(p_dtOnePatInfo);
                break;

            case "DBF":
                ie = new ExportDBF(p_dtOnePatInfo);
                break;

            case "EXCEL":
                ie = new ExportExcel(p_dtOnePatInfo);
                //string _strExceltPath =  uctlBaseConfig.GetConfig("ExceltPath");
                //PublicVar.ExcelPath = _strExceltPath;
                //PublicVar.ExcelSource = PublicVar.ExportData.Tables[0];
                break;

            default:
                CommonFunction.WriteError("未知导出类型:" + _strExportType);
                break;
            }
            ie.Export();
        }
예제 #3
0
        /// <summary>
        /// 执行导出
        /// </summary>
        public void ExeExport()
        {
            string _strOutPutType = string.Empty, _strExceltPath = string.Empty, _strDbfPath = string.Empty;

            _strOutPutType = m_strExportType;
            _strExceltPath = m_strExcelPath;
            _strDbfPath    = m_strDbfPath;
            IExport ie = null;

            switch (_strOutPutType)
            {
            case PublicVar.CExportDB:
                ie = new ExportDB();
                PublicVar.ExportParam[0] = m_dsAllPatsInfo;
                break;

            case PublicVar.CExportDBF:
                ie = new ExportDBF(m_dsAllPatsInfo.Tables[0]);
                break;

            case PublicVar.CExportExcel:
                ie = new ExportExcel();
                PublicVar.ExcelPath = _strExceltPath;
                //PublicProperty.ExcelSource = m_dsAllPatsInfo;
                break;

            default:
                break;
            }
            ie.Export();
        }
예제 #4
0
 /// <summary>
 /// 执行导出
 /// </summary>
 public static void ExeExport(DataTable p_dtOnePatInfo)
 {
     IExport ie = null;
     string _strExportType = PublicVar.m_strExportType;
     //RemoteMessage.SendMessage("==导出方式" + _strExportType + "...");
     switch (_strExportType)
     {
         case "DB":
             ie = new SingleObjectDBExport(p_dtOnePatInfo);
             break;
         case "DBF":
             ie = new ExportDBF(p_dtOnePatInfo);
             break;
         case "EXCEL":
             ie = new ExportExcel(p_dtOnePatInfo);
             //string _strExceltPath =  uctlBaseConfig.GetConfig("ExceltPath");
             //PublicVar.ExcelPath = _strExceltPath;
             //PublicVar.ExcelSource = PublicVar.ExportData.Tables[0];
             break;
        
         default:
             CommonFunction.WriteError("未知导出类型:" + _strExportType);
             break;
     }
     ie.Export();
 }