Beispiel #1
0
 /// <summary>
 /// ִ�е���
 /// </summary>
 public static void ExeExport(DataSet p_dtOnePatInfo)
 {
     IExport ie = null;
     string _strExportType = uctlBaseConfig.GetConfig("ExportType");
     switch (_strExportType)
     {
         case "DB":
             ie = new ExportDB();
             PublicProperty.ExportParam[0] = p_dtOnePatInfo;
             break;
         case "DBF":
             ie = new ExportDBF();
             string _strDbfPath = uctlBaseConfig.GetConfig("DbfPath");
             PublicProperty.ExportParam[0] = _strDbfPath;
             PublicProperty.ExportParam[1] = p_dtOnePatInfo;
             break;
         case "EXCLE":
             ie = new ExportExcel();
             string _strExceltPath = uctlBaseConfig.GetConfig("ExceltPath");
             PublicProperty.ExcelPath = _strExceltPath;
             //PublicProperty.ExcelSource = p_dtOnePatInfo;
             break;
         case "XML":
             ie = new ExportXml();
             PublicProperty.ExportParam[0] = p_dtOnePatInfo;
             break;
         default:
             CommonFunction.WriteError("δ֪��������:" + _strExportType);
             break;
     }
     Thread t = new Thread(new ThreadStart(ie.Export));
     t.Start();
 }
Beispiel #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();
        }
Beispiel #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 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();
 }
Beispiel #4
0
 /// <summary>
 /// ִ�е���
 /// </summary>
 public static void ExeExport(DataSet p_dsOnePatInfo,string p_strObjectName ,string p_strPatientId,string p_strVisitId)
 {
     IExport ie = null;
     string _strExportType = uctlBaseConfig.GetConfig("ExportType");
     switch (_strExportType)
     {
         case "DB":
             ie = new ExportDB();
             PublicVar.ExportParam[0] = p_dsOnePatInfo;
             break;
         case "DBF":
             string _strDbfPath = uctlBaseConfig.GetConfig("DbfPath");
             //PublicVar.ExportParam[0] = _strDbfPath;
             //PublicVar.ExportParam[1] = p_dsOnePatInfo;
             ie = new ExportDBF(p_dsOnePatInfo.Tables[0]);
             break;
         case "EXCLE":
             ie = new ExportExcel();
             string _strExceltPath = uctlBaseConfig.GetConfig("ExceltPath");
             PublicVar.ExcelPath = _strExceltPath;
             //PublicProperty.ExcelSource = p_dtOnePatInfo;
             break;
         case "XML":
             ie = new ExportXml(p_dsOnePatInfo, p_strObjectName, p_strPatientId, p_strVisitId);
             //PublicVar.ExportParam[0] = p_dsOnePatInfo;
             break;
         default:
             CommonFunction.WriteError("δ֪��������:" + _strExportType);
             break;
     }
     ie.Export();
     //Thread t = new Thread(new ThreadStart(ie.Export));
     //t.Start();
 }
Beispiel #5
0
 /// <summary>
 /// ִ�е���
 /// </summary>
 public static void ExeExport(DataTable p_dtOnePatInfo)
 {
     IExport ie = null;
     string _strExportType = uctlBaseConfig.GetConfig("ExportType");
     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;
         case "XML":
             ie = new FluenctExport(PublicVar.m_dsPatients);
             break;
         default:
             CommonFunction.WriteError("δ֪��������:" + _strExportType);
             break;
     }
     ie.Export();
 }
        /// <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();
        }
Beispiel #7
0
        /// <summary>
        /// 执行导出
        /// </summary>
        public static void ExeExport(DataSet p_dsOnePatInfo, string p_strObjectName, string p_strPatientId, string p_strVisitId)
        {
            IExport ie             = null;
            string  _strExportType = uctlBaseConfig.GetConfig("ExportType");

            switch (_strExportType)
            {
            case "DB":
                ie = new ExportDB();
                PublicVar.ExportParam[0] = p_dsOnePatInfo;
                break;

            case "DBF":
                string _strDbfPath = uctlBaseConfig.GetConfig("DbfPath");
                //PublicVar.ExportParam[0] = _strDbfPath;
                //PublicVar.ExportParam[1] = p_dsOnePatInfo;
                ie = new ExportDBF(p_dsOnePatInfo.Tables[0]);
                break;

            case "EXCLE":
                ie = new ExportExcel();
                string _strExceltPath = uctlBaseConfig.GetConfig("ExceltPath");
                PublicVar.ExcelPath = _strExceltPath;
                //PublicProperty.ExcelSource = p_dtOnePatInfo;
                break;

            case "XML":
                ie = new ExportXml(p_dsOnePatInfo, p_strObjectName, p_strPatientId, p_strVisitId);
                //PublicVar.ExportParam[0] = p_dsOnePatInfo;
                break;

            default:
                CommonFunction.WriteError("未知导出类型:" + _strExportType);
                break;
            }
            ie.Export();
            //Thread t = new Thread(new ThreadStart(ie.Export));
            //t.Start();
        }
Beispiel #8
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();
 }