${mapping_WFSTResult_Title}
private void OnProcessComplated(WFSTResult result, string originRes, object userState) { if (ProcessCompleted != null) { ProcessCompleted(this, new ResultEventArgs<WFSTResult>(result, originRes, userState)); } }
internal static WFSTResult FromXML(XElement TResult) { string wfs = "http://www.opengis.net/wfs"; WFSTResult result = new WFSTResult(); XElement transactionResult = TResult.Element(XName.Get("TransactionResult", wfs)); result.TransactionResult = TransactionResult.FromXML(transactionResult); IEnumerable<XElement> insertResults = TResult.Elements(XName.Get("InsertResult", wfs)); if (insertResults != null) { foreach (var item in insertResults) { if (item != null) { result.InsertResults.Add(InsertResult.FromXML(item)); } } } return result; }
internal override void ParseSuccessResult(XDocument document, string originResult, object userState) { //更新和删除没有InsertResult节点,只有TransactionResult节点。添加的话这两个节点都有 string wfs = "http://www.opengis.net/wfs"; WFSTResult result = new WFSTResult(); XElement root = document.Element(XName.Get("WFS_TransactionResponse", wfs)); if (root != null) { result = WFSTResult.FromXML(root); } OnProcessComplated(result, originResult, userState); }