Exemplo n.º 1
0
        private void Audit()
        {
            RunAllocationLogDialog dialog = new RunAllocationLogDialog();

            dialog.Service = Service;
            AllocationRunBrowserDataPage dataPage = Service.GetAllocationRunBrowserDataPage(1, AllocationRunBrowserDataPage.DEFAULT_PAGE_SIZE);

            dialog.DataPage = dataPage;
            dialog.Show();
        }
Exemplo n.º 2
0
 /// <summary>
 /// retourne la liste des allocations depuis le dernier clear all
 /// </summary>
 /// <returns></returns>
 public AllocationRunBrowserDataPage GetAllocationRunBrowserDataPage(long page, long pageSize)
 {
     try
     {
         System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
         var request = new RestRequest(ResourcePath + "/run/" + page + "/" + pageSize, Method.POST);
         request.RequestFormat = DataFormat.Json;
         RestResponse queryResult = (RestResponse)RestClient.Execute(request);
         try
         {
             AllocationRunBrowserDataPage dataPage = RestSharp.SimpleJson.DeserializeObject <AllocationRunBrowserDataPage>(queryResult.Content);
             return(dataPage);
         }
         catch (Exception) { return(null); }
     }
     catch (Exception e) { throw new BcephalException("Unable to Return allocatuion run list.", e); }
 }