Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// ִ�е���
 /// </summary>
 public static void ExeExport()
 {
     IExport ie = null;
     string _strExportType = uctlBaseConfig.GetConfig("ExportType");
     switch (_strExportType)
     {
         case "DB":
             ie = new ExportDB();
             PublicProperty.ExportParam[0] = PublicProperty.ExportData;
             break;
         case "DBF":
             ie = new ExportDBF();
             string _strDbfPath =  uctlBaseConfig.GetConfig("DbfPath");
             PublicProperty.ExportParam[0] = _strDbfPath;
             PublicProperty.ExportParam[1] = PublicProperty.ExportData.Tables[0];
             break;
         case "EXCLE":
             ie = new ExportExcel();
             string _strExceltPath =  uctlBaseConfig.GetConfig("ExceltPath");
             PublicProperty.ExcelPath = _strExceltPath;
             PublicProperty.ExcelSource = PublicProperty.ExportData.Tables[0];
             break;
         case "XML":
             ie = new ExportXml();
             PublicProperty.ExportParam[0] = PublicProperty.ExportData;
             break;
         default:
             CommonFunction.WriteError("δ֪��������:" + _strExportType);
             break;
     }
     Thread t = new Thread(new ThreadStart(ie.Export));
     t.Start();
 }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 5
0
 private void button7_Click(object sender, EventArgs e)
 {
     string _strObjectName = GetCurrentObjectName(); 
     if (DialogResult.OK == MessageBox.Show("确定生成数据抓取SQL?", "Message", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning))
     {
         ExportExcel ee = new ExportExcel();
         rtb_sql.Text=ee.SynSQL(_strObjectName);
     }
 }
Ejemplo n.º 6
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();
 }
Ejemplo n.º 7
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();
 }