コード例 #1
0
ファイル: SyncData.cs プロジェクト: zhutoutou/SJH
        /// <summary>
        /// 急救人员及急救车辆关系信息数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void HandlePVRelation(string message)
        {
            try
            {
                PVRelation Sufferer = (PVRelation)XmlUtil.Deserialize(typeof(PVRelation), message);

                IDataExchangeDataAccess Data = DataAccess.DataExchangeDataAccess();
                Data.PVRelationRespExchange += new EventHandler <DataExchangeRespEventArgs>(Data_PVRelationRespExchange);
                List <PVRelation> DataList = new List <PVRelation>();
                DataList.Add(Sufferer);
                Data.InsertPVRelation(DataList, ServerClient.UnitXZBM);
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("", ex);
            }
        }