fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [12968]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12968]
Date: Wed, 08 Apr 2015 22:32:39 +0000

Revision: 12968
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12968
Author:   nelson224
Date:     2015-04-08 22:32:38 +0000 (Wed, 08 Apr 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/js/portico/budget.obligations.js

Modified: branches/dev-syncromind/property/js/portico/budget.obligations.js
===================================================================
--- branches/dev-syncromind/property/js/portico/budget.obligations.js   
2015-04-08 22:32:05 UTC (rev 12967)
+++ branches/dev-syncromind/property/js/portico/budget.obligations.js   
2015-04-08 22:32:38 UTC (rev 12968)
@@ -20,6 +20,30 @@
                                        nCells[i].innerHTML = data.sum_actual;
                                }
                                break;
+                       case 'actual_cost_period':
+                               if (typeof(nCells[i]) !== 'undefined') 
+                               {
+                                       nCells[i].innerHTML = 
data.sum_actual_period;
+                               }
+                               break;
+                       case 'obligation':
+                               if (typeof(nCells[i]) !== 'undefined') 
+                               {
+                                       nCells[i].innerHTML = 
data.sum_obligation;
+                               }
+                               break;
+                       case 'budget_cost':
+                               if (typeof(nCells[i]) !== 'undefined') 
+                               {
+                                       nCells[i].innerHTML = data.sum_budget;
+                               }
+                               break;
+                       case 'hits':
+                               if (typeof(nCells[i]) !== 'undefined') 
+                               {
+                                       nCells[i].innerHTML = data.sum_hits;
+                               }
+                               break;
                }
        }
 };
@@ -61,33 +85,51 @@
                        return "<a href=\"" + link + "\">" + oData[key] + 
"</a>";
                }               
                
-               /*this.filter_grouping = 
function(year,month,district_id,param,details)
+               function filter_grouping(year,month,district_id,param,details)
                {
                        if(details)
                        {
-                               oMenuButton_3.set("label", ("<em>" + param + 
"</em>"));
+                               /*oMenuButton_3.set("label", ("<em>" + param + 
"</em>"));
                                oMenuButton_3.set("value", param);
-                               path_values.grouping = param;
+                               path_values.grouping = param;*/
+                               
oTable.dataTableSettings[0]['ajax']['data']['grouping'] = param;
+                               $("#grouping").val(param);
+                       
                        }
                        else
                        {
-                               oMenuButton_3.set("label", ("<em>" + 
array_options[3][0][1] + "</em>"));
+                               /*oMenuButton_3.set("label", ("<em>" + 
array_options[3][0][1] + "</em>"));
                                path_values.grouping =  array_options[3][0][0];
-                               path_values.b_account = param;
+                               path_values.b_account = param;*/
+                               
oTable.dataTableSettings[0]['ajax']['data']['grouping'] = '';
+                               $("#grouping").val('');
+                               
oTable.dataTableSettings[0]['ajax']['data']['b_account'] = param;
                        }
 
-                       oMenuButton_0.set("label", ("<em>" + year + "</em>"));
-                       path_values.year= year;
+                       /*oMenuButton_0.set("label", ("<em>" + year + "</em>"));
+                       path_values.year= year;*/
+                       oTable.dataTableSettings[0]['ajax']['data']['year'] = 
year;
 
-                       oMenuButton_1.set("label", ("<em>" + month + "</em>"));
-                       path_values.month= month;
-               
+                       /*oMenuButton_1.set("label", ("<em>" + month + 
"</em>"));
+                       path_values.month= month;*/
+                       oTable.dataTableSettings[0]['ajax']['data']['month'] = 
month;
+                       
+                       if (month === 0 || month === '') 
+                       {
+                               $("#month").val('');
+                       }
+                       else {
+                               var int_month = parseInt(month, 10);
+                               $("#month").val(int_month);                     
        
+                       }
+
                        //look for REVISION filter 's text using COD
-                       index = locate_in_array_options(1,"value",district_id);
+                       /*index = 
locate_in_array_options(1,"value",district_id);
                        oMenuButton_2.set("label", ("<em>" + 
array_options[2][index][1] + "</em>"));
                        oMenuButton_2.set("value", array_options[2][index][0]);
-                       path_values.district_id = district_id;
+                       path_values.district_id = district_id;*/
                        
-                       path_values.details = details;
-                       execute_ds();
-               }*/
\ No newline at end of file
+                       //path_values.details = details;
+                       oTable.dataTableSettings[0]['ajax']['data']['details'] 
= details;
+                       oTable.fnDraw();
+               }
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]