Exemple #1
0
        /// <summary>
        /// Get the Audit Log of a Purchase Order. Returns maxium 1000 records in descending order
        /// </summary>
        /// <param name="auditLog">Class that represents parameters when searching the Audit Log</param>
        /// <returns>Returns the Audit Log for the Purchase Order</returns>
        public List <PurchaseOrderAudit> Get_PurchaseOrderAudit(Search_PurchaseOrder_AuditLog auditLog)
        {
            var response = GetResponse("PurchaseOrder/Get_PurchaseOrderAudit", "auditLog=" + JsonFormatter.ConvertToJson(auditLog) + "");

            return(JsonFormatter.ConvertFromJson <List <PurchaseOrderAudit> >(response));
        }
Exemple #2
0
        /// <summary>
        /// Get the Audit Log of a Purchase Order. Returns maxium 1000 records in descending order
        /// </summary>
        /// <param name="auditLog">Class that represents parameters when searching the Audit Log</param>
        /// <returns>Returns the Audit Log for the Purchase Order</returns>
        public List <PurchaseOrderAudit> Get_PurchaseOrderAudit(Search_PurchaseOrder_AuditLog auditLog)
        {
            var response = GetResponse("PurchaseOrder/Get_PurchaseOrderAudit", "auditLog=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(auditLog)) + "");

            return(JsonFormatter.ConvertFromJson <List <PurchaseOrderAudit> >(response));
        }
 public static List<PurchaseOrderAudit> Get_PurchaseOrderAudit(Search_PurchaseOrder_AuditLog auditLog, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<List<PurchaseOrderAudit>>(Factory.GetResponse("PurchaseOrder/Get_PurchaseOrderAudit", "auditLog=" + Newtonsoft.Json.JsonConvert.SerializeObject(auditLog) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }
Exemple #4
0
 public static List <PurchaseOrderAudit> Get_PurchaseOrderAudit(Search_PurchaseOrder_AuditLog auditLog, Guid ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <List <PurchaseOrderAudit> >(Factory.GetResponse("PurchaseOrder/Get_PurchaseOrderAudit", "auditLog=" + Newtonsoft.Json.JsonConvert.SerializeObject(auditLog, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }