Пример #1
0
 /// <remarks/>
 public void insertLinesAsync(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, string blocKey, string lineKey, string lineXml, object userState) {
     if ((this.insertLinesOperationCompleted == null)) {
         this.insertLinesOperationCompleted = new System.Threading.SendOrPostCallback(this.OninsertLinesOperationCompleted);
     }
     this.InvokeAsync("insertLines", new object[] {
                 callContext,
                 publicName,
                 objectKeys,
                 blocKey,
                 lineKey,
                 lineXml}, this.insertLinesOperationCompleted, userState);
 }
Пример #2
0
 public CAdxResultXml insertLines(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, string blocKey, string lineKey, string lineXml) {
     object[] results = this.Invoke("insertLines", new object[] {
                 callContext,
                 publicName,
                 objectKeys,
                 blocKey,
                 lineKey,
                 lineXml});
     return ((CAdxResultXml)(results[0]));
 }
Пример #3
0
 /// <remarks/>
 public void insertLinesAsync(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, string blocKey, string lineKey, string lineXml) {
     this.insertLinesAsync(callContext, publicName, objectKeys, blocKey, lineKey, lineXml, null);
 }
Пример #4
0
 /// <remarks/>
 public void actionObject1Async(CAdxCallContext callContext, string publicName, string actionCode, CAdxParamKeyValue[] objectKeys, object userState) {
     if ((this.actionObject1OperationCompleted == null)) {
         this.actionObject1OperationCompleted = new System.Threading.SendOrPostCallback(this.OnactionObject1OperationCompleted);
     }
     this.InvokeAsync("actionObject1", new object[] {
                 callContext,
                 publicName,
                 actionCode,
                 objectKeys}, this.actionObject1OperationCompleted, userState);
 }
Пример #5
0
 /// <remarks/>
 public void deleteLinesAsync(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, string blocKey, string[] lineKeys) {
     this.deleteLinesAsync(callContext, publicName, objectKeys, blocKey, lineKeys, null);
 }
Пример #6
0
 public CAdxResultXml actionObject(CAdxCallContext callContext, string publicName, string actionCode, CAdxParamKeyValue[] objectKeys) {
     object[] results = this.Invoke("actionObject1", new object[] {
                 callContext,
                 publicName,
                 actionCode,
                 objectKeys});
     return ((CAdxResultXml)(results[0]));
 }
Пример #7
0
 /// <remarks/>
 public void actionObject1Async(CAdxCallContext callContext, string publicName, string actionCode, CAdxParamKeyValue[] objectKeys) {
     this.actionObject1Async(callContext, publicName, actionCode, objectKeys, null);
 }
Пример #8
0
 /// <remarks/>
 public void modifyAsync(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, string objectXml) {
     this.modifyAsync(callContext, publicName, objectKeys, objectXml, null);
 }
Пример #9
0
 /// <remarks/>
 public void modifyAsync(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, string objectXml, object userState) {
     if ((this.modifyOperationCompleted == null)) {
         this.modifyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnmodifyOperationCompleted);
     }
     this.InvokeAsync("modify", new object[] {
                 callContext,
                 publicName,
                 objectKeys,
                 objectXml}, this.modifyOperationCompleted, userState);
 }
Пример #10
0
 /// <remarks/>
 public void queryAsync(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, int listSize, object userState) {
     if ((this.queryOperationCompleted == null)) {
         this.queryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnqueryOperationCompleted);
     }
     this.InvokeAsync("query", new object[] {
                 callContext,
                 publicName,
                 objectKeys,
                 listSize}, this.queryOperationCompleted, userState);
 }
Пример #11
0
 public CAdxResultXml modify(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, string objectXml) {
     object[] results = this.Invoke("modify", new object[] {
                 callContext,
                 publicName,
                 objectKeys,
                 objectXml});
     return ((CAdxResultXml)(results[0]));
 }
Пример #12
0
 /// <remarks/>
 public void queryAsync(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, int listSize) {
     this.queryAsync(callContext, publicName, objectKeys, listSize, null);
 }
Пример #13
0
 public CAdxResultXml query(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys, int listSize) {
     object[] results = this.Invoke("query", new object[] {
                 callContext,
                 publicName,
                 objectKeys,
                 listSize});
     return ((CAdxResultXml)(results[0]));
 }
Пример #14
0
 /// <remarks/>
 public void readAsync(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys) {
     this.readAsync(callContext, publicName, objectKeys, null);
 }
Пример #15
0
 public CAdxResultXml read(CAdxCallContext callContext, string publicName, CAdxParamKeyValue[] objectKeys) {
     object[] results = this.Invoke("read", new object[] {
                 callContext,
                 publicName,
                 objectKeys});
     return ((CAdxResultXml)(results[0]));
 }
Пример #16
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById<Button>(Resource.Id.cmdBoton1);
            button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };

            //Configuramos el contexto que usaremos en la aplicacion
            CAdxCallContext adxContexto;
            CAdxWebServiceXmlCCService adxControlWS;
            CAdxParamKeyValue[] adxParametros;
            CAdxResultXml adxResultado;

            string XMLEntrada;

            adxContexto = new CAdxCallContext();
            adxControlWS = new CAdxWebServiceXmlCCService();
            adxParametros = new CAdxParamKeyValue[1];

            adxContexto.codeLang = "SPA";
            adxContexto.codeUser = "******";
            adxContexto.password = "******";
            adxContexto.poolAlias = "COFRICO";
            //adxContexto.requestConfig = "";

            //Establecemos los parametros
            adxParametros[0] = new CAdxParamKeyValue();
            adxParametros[0].key = "CLB";
            adxParametros[0].value = "PRU";

            //Hacemos la llamada al WS
            XMLEntrada = "<PARAM>";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "CLB" + '\u0022' + ">PRU</FLD>";
            XMLEntrada += "<TAB ID = " + '\u0022' + "EXS0_3" + '\u0022' + ">";
            XMLEntrada += "<LIN NUM = " + '\u0022' + "2" + '\u0022' + ">";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "FCY" + '\u0022' + ">0101</FLD>";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "DATEXS" + '\u0022' + ">20151103</FLD>";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "CODEXP" + '\u0022' + ">AUTOPISTA</FLD>";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "CUR" + '\u0022' + ">EUR</FLD>";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "QTY" + '\u0022' + ">1</FLD>";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "ZPAFOR" + '\u0022' + ">1</FLD>";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "UOM" + '\u0022' + ">UN</FLD>";
            XMLEntrada += "<FLD NAME = " + '\u0022' + "AMTPAY" + '\u0022' + ">1.0</FLD>";
            XMLEntrada += "</LIN>";
            XMLEntrada += "</TAB>";
            XMLEntrada += "</PARAM>";

            try
            {
                adxResultado = adxControlWS.modify(adxContexto, "ZWEXSAND", adxParametros, XMLEntrada);

                Toast menMensajePantalla = Toast.MakeText(this, adxResultado.resultXml, ToastLength.Long);
                menMensajePantalla.Show();
            } catch (Exception ex)
            {
                Toast menMensajePantalla = Toast.MakeText(this, ex.Message, ToastLength.Long);
                menMensajePantalla.Show();
            }
        }