예제 #1
0
파일: SyncData.cs 프로젝트: zhutoutou/SJH
        //20160105修改人:朱星汉 修改内容:添加病历记录删除表的上传
        /// <summary>
        /// 病历记录删除表数据
        /// </summary>
        /// <param name="strMsg"></param>
        public void HandleLWBLTBDELBData(string message)
        {
            try
            {
                LWBLTBDELB item = (LWBLTBDELB)XmlUtil.Deserialize(typeof(LWBLTBDELB), message);
                IDataExchangeDataAccess Data = DataAccess.DataExchangeDataAccess();
                Data.LWBLTBDELBRespExchange += new EventHandler <DataExchangeRespEventArgs>(Data_LWBLTBDELBRespExchange);

                List <LWBLTBDELB> DataList = new List <LWBLTBDELB>();
                DataList.Add(item);
                Data.DeleteWeb_MedicalRecords(DataList, ServerClient.UnitXZBM);

                ISyncData syncData = LocalDataAccess.SyncDataAccess();
                syncData.SyncLWBLTBDELB(item, ServerClient.UnitCode);
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("", ex);
            }
        }
예제 #2
0
파일: SyncData.cs 프로젝트: zhutoutou/SJH
        /// <summary>
        /// 病历填写项目与值对应关系数据
        /// </summary>
        /// <param name="strMsg"></param>
        public void HandleWeb_MedicalStatisticsData(string message)
        {
            try
            {
                Web_MedicalStatistics item = (Web_MedicalStatistics)XmlUtil.Deserialize(typeof(Web_MedicalStatistics), message);

                IDataExchangeDataAccess Data = DataAccess.DataExchangeDataAccess();
                Data.Web_MedicalStatisticsRespExchange += new EventHandler <DataExchangeRespEventArgs>(Data_Web_MedicalStatisticsRespExchange);

                List <Web_MedicalStatistics> DataList = new List <Web_MedicalStatistics>();
                DataList.Add(item);
                Data.InsertWeb_MedicalStatistics(DataList, ServerClient.UnitXZBM);

                //同步联网调度单的患者病历内容对应关系信息到市120本地库中
                ISyncData syncData = LocalDataAccess.SyncDataAccess();
                syncData.Web_MedicalStatisticsRespExchange += new EventHandler <SyncDataRespEventArgs>(Data_Web_MedicalStatisticsRespSync);
                syncData.SyncWeb_MedicalStatistics(item, ServerClient.UnitCode);
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("", ex);
            }
        }
예제 #3
0
파일: SyncData.cs 프로젝트: zhutoutou/SJH
        /// <summary>
        /// 出车信息上报
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void HandleDispatchVehicleData(string message)
        {
            try
            {
                DispatchVehicleData DispatchVehicle = (DispatchVehicleData)XmlUtil.Deserialize(typeof(DispatchVehicleData), message);

                IDataExchangeDataAccess Data = DataAccess.DataExchangeDataAccess();
                Data.DispatchVehicleDataRespExchange += new EventHandler <DataExchangeRespEventArgs>(Data_DispatchVehicleDataRespExchange);

                List <DispatchVehicleData> DataList = new List <DispatchVehicleData>();
                DataList.Add(DispatchVehicle);

                Data.InsertDispatchVehicleData(DataList, ServerClient.UnitXZBM);

                //同步联网调度单的出车信息到市120本地库中
                ISyncData syncData = LocalDataAccess.SyncDataAccess();
                syncData.DispatchVehicleDataRespExchange += new EventHandler <SyncDataRespEventArgs>(Data_DispatchVehicleDataRespSync);
                syncData.SyncDispatchVehicleData(DispatchVehicle, ServerClient.UnitCode);
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("", ex);
            }
        }