/// <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(); }
/// <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> /// <param name="p_strXml"></param> /// <param name="p_dtSource"></param> /// <returns></returns> public string DoInterfaceReplace(string p_strXml, string p_strOldValue, string p_strPatientId, string p_strVisitId) { try { string _strXml = p_strXml; string _strNewValue = SingleObjectDBExport.CallMrInfo2(p_strPatientId, int.Parse(p_strVisitId), p_strOldValue); if (_strXml.IndexOf(p_strOldValue) > 0) { _strNewValue = ConversionData.ExchangeData(p_strOldValue, _strNewValue); _strXml = _strXml.Replace(p_strOldValue, _strNewValue); RemoteMessage.SendMessage(p_strOldValue + "....................." + _strNewValue); } return(_strXml); } catch (Exception ex) { CommonFunction.WriteError("DoInterfaceReplace" + ex.Message); } return(null); }
public static void Insert(DataSet p_dsSource) { CommonFunction.WriteLog("=====================" + m_strTimeRange + "====================="); try { m_dsSource = p_dsSource; //修改人:吴海龙;修改时间2014-07-19;修改原因:从pt_tables_dict 设置那些表导出 m_strSQL = string.Format("select * from pt_tables_dict where exportflag = 'TRUE'"); DataTable _dtTarget = CommonFunction.OleExecuteBySQL(m_strSQL, "", "EMR"); foreach (DataRow drTarget in _dtTarget.Rows) { RemoteMessage.SendMessage("开启" + drTarget["TABLE_NAME"].ToString() + "数据上传线程"); SingleObjectDBExport p = new SingleObjectDBExport(drTarget["TABLE_NAME"].ToString(), p_dsSource); p.DoProcess(); //Thread t = new Thread(new ThreadStart(p.DoProcess)); //t.Start(); } } catch (Exception exp) { RemoteMessage.SendMessage("[异常]:" + exp.Message); } }
public static void Insert(DataSet p_dsSource) { CommonFunction.WriteLog("=====================" + m_strTimeRange + "====================="); try { m_dsSource = p_dsSource; //修改人:吴海龙;修改时间2014-07-19;修改原因:从pt_tables_dict 设置那些表导出 m_strSQL = string.Format("select * from pt_tables_dict where exportflag = 'TRUE'"); DataTable _dtTarget = CommonFunction.OleExecuteBySQL(m_strSQL, "", "EMR"); foreach (DataRow drTarget in _dtTarget.Rows) { RemoteMessage.SendMessage("开启" + drTarget["TABLE_NAME"].ToString() + "数据上传线程"); SingleObjectDBExport p = new SingleObjectDBExport(drTarget["TABLE_NAME"].ToString(), p_dsSource); p.DoProcess(); //Thread t = new Thread(new ThreadStart(p.DoProcess)); //t.Start(); } } catch (Exception exp) { RemoteMessage.SendMessage("[异常]:" + exp.Message); } }
/// <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(); }