Exemplo n.º 1
0
        public virtual void DoCreate(MaximoOperationExecutionContext maximoTemplateData)
        {
            var resultData = maximoTemplateData.InvokeProxy();
            var idProperty = maximoTemplateData.Metadata.Schema.IdAttribute.Name;
            var resultOb   = (Array)resultData;
            var firstOb    = resultOb.GetValue(0);
            var id         = (string)WsUtil.GetRealValue(firstOb, idProperty);

            maximoTemplateData.ResultObject = new MaximoResult(id, resultData);
        }
Exemplo n.º 2
0
        public void DoDelete(MaximoOperationExecutionContext maximoTemplateData)
        {
            var resultData = maximoTemplateData.InvokeProxy();

            maximoTemplateData.ResultObject = new MaximoResult(maximoTemplateData.OperationData.Id, resultData);
        }