예제 #1
0
        private void DealDispatchTaskRequestReinforcement(string strMsg)
        {
            DispatchTaskRequestReinforcement Data = (DispatchTaskRequestReinforcement)XmlUtil.Deserialize(typeof(DispatchTaskRequestReinforcement), strMsg);
            string message = "[1081LSH:" + Data.DealRecordID + "*#DWBH:" + Data.TargetUnitID + "*#LocalDWBH:" + Data.SourceUnitID + "*#HJQY:" + Data.CallArea + "*#ZJHM:" + Data.CallNumber + "*#HZ:" + Data.HostName + "*#ZJDZ:" + Data.Address + "*#HJR:" + Data.CallerName + "*#LDSJ:" + Data.CallTime + "*#SLSJ:" + Data.DealTime + "*#GJSJ:" + Data.HangupTime + "*#XXLY:" + Data.InfoSource + "*#ZBY:" + Data.WatcherName + "*#LDLX:" + Data.CallType + "*#LXDH:" + Data.ContactTelphone + "*#JCDZ:" + Data.MeetAddress + "*#HCZLX:" + Data.CallerType + "*#FBDZ:" + Data.HappenAddress + "*#HZGJ:" + Data.Nationality + "*#HJYY:" + Data.Symptom + "*#HZBS:" + Data.SuffererMedicalRecord + "*#GXJD:" + Data.DominationStreet + "*#GXYY:" + Data.DominationHospital + "*#HZXM:" + Data.SuffererName + "*#HZXB:" + Data.SuffererSex + "*#HZNL:" + Data.SuffererAge + "*#HZRS:" + Data.SuffererCount + "*#HZZZ:" + Data.Firstdiag + "*#CZFS:" + Data.TreatmentMode + "*#SWDD:" + Data.SendArriveAddress + "*#KJLM:" + Data.AnearRoadName + "*#]";

            Controller.GetInstance().bs.SendMessage(message);
        }
예제 #2
0
        private void HandleDispatchTaskRequestReinforcement(string strMsg)
        {
            DispatchTaskRequestReinforcement Dispacth = (DispatchTaskRequestReinforcement)XmlUtil.Deserialize(typeof(DispatchTaskRequestReinforcement), strMsg);

            foreach (var item in Controller.GetInstance().es.OnlineClents)
            {
                if (item.UnitCode == Dispacth.TargetUnitID)
                {
                    item.SendMessage(XmlUtil.GetXMlStart() + strMsg);
                    break;
                }
            }
        }