private [email protected] fieldsViewGetData(string resourceName, int viewId, string viewType, [email protected] context) { Interfaces.IObject conn; object retour; [email protected] ret = null; try { conn = XmlRpcProxyGen.Create <Interfaces.IObject>(); conn.Url = url(SERVICE_XMLRPC.@object); retour = conn.executeThreeParam(_config.database, _config.userId, _config.password, resourceName, "fields_view_get", viewId, viewType, context.toArray()); ret = new [email protected](); ret.copyData((XmlRpcStruct)retour); } catch (Exception ex) { if ((_config.reportXmlRpcError) && (ex.GetType() == typeof(XmlRpcFaultException))) { throw new Systeme.exceptionOpenERP(Systeme.exceptionOpenERP.ERRORS.LIB_XMLRPC, ex.Message); } } finally { conn = null; } return(ret); }
private [email protected] defaultGetData(string resourceName, List <string> listeChamps) { Interfaces.IObject conn; object retour; [email protected] ret = new [email protected](); try { conn = XmlRpcProxyGen.Create <Interfaces.IObject>(); conn.Url = url(SERVICE_XMLRPC.@object); retour = conn.execute(_config.database, _config.userId, _config.password, resourceName, "default_get", listeChamps.ToArray()); ret.copyData((XmlRpcStruct)retour); return(ret); } catch (Exception ex) { if ((_config.reportXmlRpcError) && (ex.GetType() == typeof(XmlRpcFaultException))) { throw new Systeme.exceptionOpenERP(Systeme.exceptionOpenERP.ERRORS.LIB_XMLRPC, ex.Message); } } finally { conn = null; } return(null); }