modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_forms/BatchPaymentExecution.html
changeset 9076 c4f1a5c7d7c2
child 10772 802557f42def
equal deleted inserted replaced
9075:b3ea04de2722 9076:c4f1a5c7d7c2
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!--
       
     3  *************************************************************************
       
     4  * The contents of this file are subject to the Openbravo  Public  License
       
     5  * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
       
     6  * Version 1.1  with a permitted attribution clause; you may not  use this
       
     7  * file except in compliance with the License. You  may  obtain  a copy of
       
     8  * the License at http://www.openbravo.com/legal/license.html
       
     9  * Software distributed under the License  is  distributed  on  an "AS IS"
       
    10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
       
    11  * License for the specific  language  governing  rights  and  limitations
       
    12  * under the License.
       
    13  * The Original Code is Openbravo ERP.
       
    14  * The Initial Developer of the Original Code is Openbravo SLU
       
    15  * All portions are Copyright (C) 2010 Openbravo SLU
       
    16  * All Rights Reserved.
       
    17  * Contributor(s):  ______________________________________.
       
    18  * Licensed under the Openbravo Commercial License version 1.1
       
    19  *************************************************************************
       
    20 -->
       
    21 <html xmlns="http://www.w3.org/1999/xhtml">
       
    22 <head>
       
    23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       
    24 <title>Payment Execution</title>
       
    25 <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
       
    26 <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"/>
       
    27 <script language="JavaScript" type="text/javascript" id="paramDirectory">
       
    28 var baseDirectory = "../../../../../web/";
       
    29 </script>
       
    30 <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
       
    31 <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
       
    32 <script language="JavaScript" type="text/javascript" id="paramLanguage">
       
    33   var defaultLang = "en_US";
       
    34 </script>
       
    35 <SCRIPT language="JavaScript" type="text/javascript" id="confirmOnChanges">var confirmOnChanges = true;</SCRIPT>
       
    36 <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
       
    37 <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
       
    38 <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
       
    39 <script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
       
    40 <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
       
    41 <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
       
    42 <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
       
    43 <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
       
    44 <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
       
    45 <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
       
    46 <SCRIPT language="JavaScript" src="../../../../../web/js/djConfig.js" type="text/javascript"></SCRIPT>
       
    47 <SCRIPT language="JavaScript" src="../../../../../web/js/dojotoolkit/dojo/dojo.js" type="text/javascript"></SCRIPT>
       
    48 <SCRIPT language="JavaScript" src="../../../../../web/js/djDependencies.js" type="text/javascript"></SCRIPT>
       
    49 <script language="JavaScript" src="../../../../../web/org.openbravo.advpaymentmngt/FIN_Utilities.js" type="text/javascript"></script>
       
    50 
       
    51 <script language="JavaScript" type="text/javascript">
       
    52 function onLoadDo(){
       
    53   setProcessingMode('window', false);
       
    54   this.windowTables = new Array(
       
    55     new windowTableId('client', 'buttonSearch'),
       
    56     new windowTableId('tdbottomButtons', 'buttonProcess')
       
    57   );
       
    58   setWindowTableParentElement();
       
    59   this.tabsTables = new Array(
       
    60     new tabTableId('tdtopTabs')
       
    61   );
       
    62   setTabTableParentElement();
       
    63   enableShortcuts('edition');
       
    64   setBrowserAutoComplete(false);
       
    65   rememberIsReceipt();
       
    66 
       
    67   try {
       
    68     onloadFunctions();
       
    69   } catch (e) {}
       
    70   resizeArea();
       
    71   updateMenuIcon('buttonMenu');
       
    72   setWindowElementFocus('firstElement');
       
    73   loadPaymentMethodCombo();
       
    74 }
       
    75 
       
    76 function onResizeDo(){
       
    77   resizeArea();
       
    78 }
       
    79 
       
    80 function rememberIsReceipt() {
       
    81  var isReceipt = document.frmMain.elements["inpChkIsReceipt"].value;
       
    82  var receivedin = document.getElementById('paramReceivedIn');
       
    83  var paidout = document.getElementById('paramPaidOut');
       
    84  if ("Y" == isReceipt) {
       
    85    receivedin.checked = true;
       
    86    paidout.checked = false;
       
    87  } else {
       
    88    receivedin.checked = false;
       
    89    paidout.checked = true;
       
    90  }
       
    91 }
       
    92 
       
    93 function calculateNumRows() {
       
    94   resizeArea();
       
    95   document.getElementById("grid_sample").style.display = "block";
       
    96   var grid_header_height = document.getElementById("grid_sample_header").clientHeight + 1;
       
    97   var grid_row_height = document.getElementById("grid_sample_row").clientHeight + 1;
       
    98   if (getBrowserInfo('name').toUpperCase().indexOf("CHROME") != -1 || getBrowserInfo('name').toUpperCase().indexOf("SAFARI") != -1) {
       
    99     grid_header_height = grid_header_height + 1;
       
   100     grid_row_height = grid_row_height - 1;
       
   101   }
       
   102   var messagebox_cont = document.getElementById("messageBoxID");
       
   103   var filterRow1_cont = document.getElementById("filterRow1");
       
   104   var filterRow2_cont = document.getElementById("filterRow2");
       
   105   var filterRow3_cont = document.getElementById("filterRow3");
       
   106   var filterRow4_cont = document.getElementById("filterRow4");
       
   107   var filterRow5_cont = document.getElementById("filterRow5");
       
   108   var bottomrow_cont = document.getElementById("bottomRow");
       
   109   var related_info_cont = document.getElementById("related_info_cont");
       
   110   var client_height = document.getElementById("client").clientHeight;
       
   111 
       
   112   client_height = client_height
       
   113       - grid_header_height
       
   114       - (related_info_cont?related_info_cont.clientHeight:0)
       
   115       - (filterRow1_cont?filterRow1_cont.clientHeight:0)
       
   116       - (filterRow2_cont?filterRow2_cont.clientHeight:0)
       
   117       - (filterRow3_cont?filterRow3_cont.clientHeight:0)
       
   118       - (filterRow4_cont?filterRow4_cont.clientHeight:0)
       
   119       - (filterRow5_cont?filterRow5_cont.clientHeight:0)
       
   120       - (bottomrow_cont?bottomrow_cont.clientHeight:0)
       
   121       - (messagebox_cont?messagebox_cont.clientHeight:0);
       
   122   
       
   123   client_height = client_height - 20;
       
   124   var numRows = (client_height)/(grid_row_height);
       
   125   numRows = parseInt(numRows);
       
   126   if (numRows > 1) { numRows -= 1; }
       
   127   document.getElementById("grid_sample").style.display = "none";
       
   128   return numRows;
       
   129 }
       
   130 </script>
       
   131 <script language="JavaScript" type="text/javascript">
       
   132 function validate() {
       
   133   var frm = document.frmMain;
       
   134   if (frm.inpOrgId.value==null || frm.inpOrgId.value=="") {
       
   135     setWindowElementFocus(frm.inpOrgId);
       
   136     showJSMessage(7);
       
   137     return false;
       
   138   } else if (frm.inpPaymentMethod.value==null || frm.inpPaymentMethod.value=="") {
       
   139 	setWindowElementFocus(frm.inpPaymentMethod);
       
   140 	showJSMessage(7);
       
   141 	return false;
       
   142   } else if (frm.inpFinancialAccount.value==null || frm.inpFinancialAccount.value=="") {
       
   143     setWindowElementFocus(frm.inpFinancialAccount);
       
   144 	showJSMessage(7);
       
   145 	return false;
       
   146   }
       
   147   
       
   148   return true;
       
   149 }
       
   150 
       
   151 function validateSelector(action) {
       
   152   var strSelectedRowList = "";
       
   153   if(action == "SAVE") {
       
   154     rows = dijit.byId('grid').getSelectedRows();
       
   155     if (rows[0] === undefined) {
       
   156       showJSMessage('NotSelected');
       
   157       return false;
       
   158     }
       
   159     for(var i=0; i < rows.length; i++) {
       
   160       var rowkey = rows[i].split("#");
       
   161       if (i==0)
       
   162         strSelectedRowList = rowkey;
       
   163       else
       
   164         strSelectedRowList = strSelectedRowList + "," + rowkey;
       
   165     }
       
   166   }
       
   167   document.frmMain.elements["inpSelectedRowList"].value = strSelectedRowList;
       
   168   submitThisPage('DEFAULT');
       
   169 }
       
   170 
       
   171 function submitThisPage(strCommand) {
       
   172   if (validate()) {
       
   173 	  openServletNewWindow('DEFAULT', true, '../org.openbravo.advpaymentmngt.ad_actionbutton/ExecutePayments.html', 'ExecutePayments', null, false, '600', '800');
       
   174     return true;
       
   175   }
       
   176   return true;
       
   177 }
       
   178 
       
   179 function updateHeader(liveGrid, offset) {
       
   180   var backendPageSize = liveGrid.getBackendPageSize();
       
   181   var currPageStart = (liveGrid.metaData.getBackendPage()*backendPageSize);
       
   182   var pageFull = (liveGrid.metaData.getTotalRows() >= backendPageSize);
       
   183   var firstPage = (liveGrid.metaData.getBackendPage() == 0);
       
   184   var res =  "<nobr class='Main_ToolBar_text_bookmark'>";
       
   185   var strPrevious = getMessage("GridPreviousPage");
       
   186   var strNext = getMessage("GridNextPage");
       
   187   
       
   188   if (!firstPage) {
       
   189     res = res + "<a href='#' onclick='gridMovePage(\"PREVIOUSPAGE\")' class='Main_ToolBar_text_pagerange'>" + strPrevious + " " + backendPageSize + "</a>&nbsp;&nbsp;";
       
   190   }
       
   191   res = res + ((liveGrid.visibleRows>0)?(currPageStart+offset+1):0) + " - "+ (currPageStart+offset+liveGrid.visibleRows) + " / " + (currPageStart+liveGrid.metaData.getTotalRows());
       
   192   if (pageFull) {
       
   193     res = res + "&nbsp;&nbsp;<a href='#' onclick='gridMovePage(\"NEXTPAGE\")' class='Main_ToolBar_text_pagerange'>" + strNext + " " + backendPageSize + "</a>";
       
   194   }
       
   195   
       
   196   liveGrid.setGridPaging(!firstPage,pageFull);
       
   197   res = res + "</nobr>";
       
   198   dojo.byId('bookmark').innerHTML = res;
       
   199 }
       
   200 
       
   201 function onGridLoadDo() {
       
   202   if (selectedRow==null) return true;
       
   203   if (selectedRow<=0) dijit.byId('grid').goToFirstRow();
       
   204   else dijit.byId('grid').goToRow(selectedRow);
       
   205   return true;
       
   206 }
       
   207 
       
   208 function setGridFilters(newparams) {
       
   209   var params = [];
       
   210   params["newFilter"] = "1";
       
   211   if (newparams!=null && newparams.length>0) {
       
   212     var total = newparams.length;
       
   213     for (var i=0;i<total;i++) {
       
   214       params[newparams[i][0]] = newparams[i][1];
       
   215     }
       
   216   }
       
   217   dijit.byId('grid').setRequestParams(params);
       
   218   return true;
       
   219 }
       
   220 
       
   221 function gridMovePage(direction) {
       
   222   dijit.byId('grid').gridMovePage(direction);
       
   223   return true;
       
   224 }
       
   225 function changeOrganization() {
       
   226   loadPaymentMethodCombo();
       
   227 }
       
   228 </script>
       
   229 <script language="JavaScript" type="text/javascript">
       
   230 function loadFinancialAccountCombo() {
       
   231   try {
       
   232     var url = "../org.openbravo.advpaymentmngt.ad_forms/BatchPaymentExecution.html";
       
   233     var paramXMLReq = null;
       
   234     return submitXmlHttpRequest(callBackFinancialAccount, document.frmMain, "CALLOUTFINANCIALACCOUNT", url, false, null, paramXMLReq);
       
   235   } catch (e) {
       
   236     alert(e);
       
   237   }
       
   238 }
       
   239 
       
   240 function loadPaymentMethodCombo() {
       
   241   try {
       
   242     var url = "../org.openbravo.advpaymentmngt.ad_forms/BatchPaymentExecution.html";
       
   243     var paramXMLReq = null;
       
   244     return submitXmlHttpRequest(callBackPaymentMethod, document.frmMain, "CALLOUTPAYMENTMETHOD", url, false, null, paramXMLReq);
       
   245   } catch (e) {
       
   246     alert(e);
       
   247   }
       
   248 }
       
   249 
       
   250 function callBackFinancialAccount(paramXMLParticular, XMLHttpRequestObj) {
       
   251   var strText = "";
       
   252   if (getReadyStateHandler(XMLHttpRequestObj)) {
       
   253     try {
       
   254       if (XMLHttpRequestObj.responseText) {
       
   255         strText = XMLHttpRequestObj.responseText;
       
   256         createCombo(document.getElementById('inpFinancialAccount'), strText);
       
   257       } else {
       
   258         document.getElementById('inpFinancialAccount').innerHTML = '';
       
   259       }
       
   260     } catch (e) {
       
   261     }
       
   262   }
       
   263   return true;
       
   264 }
       
   265 
       
   266 function callBackPaymentMethod(paramXMLParticular, XMLHttpRequestObj) {
       
   267   var strText = "";
       
   268   if (getReadyStateHandler(XMLHttpRequestObj)) {
       
   269     try {
       
   270       if (XMLHttpRequestObj.responseText) {
       
   271         strText = XMLHttpRequestObj.responseText;
       
   272         createCombo(document.getElementById('inpPaymentMethod'), strText);
       
   273         loadFinancialAccountCombo();
       
   274       } else {
       
   275         document.getElementById('inpPaymentMethod').innerHTML = '';
       
   276       }
       
   277     } catch (e) {
       
   278     }
       
   279   }
       
   280   return true;
       
   281 }
       
   282 </script>
       
   283 <script language="JavaScript" type="text/javascript" id="selectedColumn">  
       
   284   var selectedRow = 0;
       
   285   var orderByPositions = new Array("1");
       
   286   var orderByDirections = new Array("ASC");
       
   287 </script>
       
   288 </head>
       
   289 <body onload="onLoadDo();" onresize="onResizeDo();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
       
   290       
       
   291 <form method="post" action="BatchPaymentExecution.html" name="frmMain" >
       
   292 <input type="hidden" name="Command" />
       
   293 <input type="hidden" name="inpLastFieldChanged" value=""></input>
       
   294 <input type="hidden" name="inpKeyName" value="">
       
   295 <input type="hidden" name="inpSelectedRowList" id="inpSelectedRowList" value="">
       
   296 <input type="hidden" name="inpwindowId" id="inpwindowId" value="">
       
   297 <input type="hidden" name="inpTabId" id="inpTabId" value="">
       
   298 <input type="hidden" name="inpChkIsReceipt" id="inpChkIsReceipt" value="Y">
       
   299 <input type="hidden" name="isReceipt" value="dummyField" id="fieldReceipt"/>
       
   300 
       
   301 <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
       
   302   <tr>
       
   303     <td valign="top" id="tdleftTabs"></td>
       
   304     <td valign="top">
       
   305       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Left">
       
   306         <tr><td class="Main_NavBar_bg_left" id="tdleftSeparator"></td></tr>
       
   307         <tr><td class="Main_ToolBar_bg_left" valign="top"></td></tr>
       
   308         <tr><td class="Main_Client_bg_left"></td></tr>
       
   309         <tr><td class="Main_Bottom_bg_left"></td></tr>
       
   310       </table>
       
   311     </td>
       
   312     <td valign="top">
       
   313       <div class="Main_ContentPane_NavBar" id="tdtopButtons"></div>
       
   314       <div class="Main_ContentPane_ToolBar" id="paramToolBar"></div>
       
   315       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_TabPane" id="tdtopTabs">
       
   316         <tr id="paramParentTabContainer"></tr>
       
   317         <tr id="paramMainTabContainer"></tr>
       
   318         <tr id="paramChildTabContainer"></tr>
       
   319       </table>
       
   320       <div class="Main_ContentPane_Client" style="overflow: auto; display: none; border-bottom: 0px none;" id="client">
       
   321         <table class="dojoTabContainer" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
       
   322           <tr>
       
   323             <td>
       
   324               <table class="dojoTabPaneWrapper" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
       
   325                 <tr>
       
   326                   <td>
       
   327                   <!-- MessageBox -->
       
   328 
       
   329                     <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
       
   330                       <tbody>
       
   331                         <tr class="MessageBox_TopMargin">
       
   332                           <td class="MessageBox_LeftMargin"></td>
       
   333                           <td></td>
       
   334                           <td class="MessageBox_RightMargin"></td>
       
   335                         </tr>
       
   336                         <tr>
       
   337                           <td class="MessageBox_LeftMargin"></td>
       
   338                           <td>
       
   339 
       
   340                             <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
       
   341                               <tbody>
       
   342                                 <tr>
       
   343                                   <td class="MessageBox_LeftTrans">
       
   344                                     <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
       
   345                                       <tbody>
       
   346                                         <tr>
       
   347                                           <td class="MessageBox_TopLeft"></td>
       
   348                                         </tr>
       
   349                                         <tr>
       
   350                                           <td class="MessageBox_Left"></td>
       
   351                                         </tr>
       
   352                                       </tbody>
       
   353                                     </table>
       
   354                                   </td>
       
   355                                   <td class="MessageBox_bg">
       
   356                                     <table class="MessageBox_Top">
       
   357                                       <tbody>
       
   358                                         <tr>
       
   359                                           <td>
       
   360                                             <span>
       
   361                                               <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
       
   362                                                 <tbody>
       
   363                                                 <tr>
       
   364                                                   <td class="MessageBox_Icon_ContentCell">
       
   365                                                     <div class="MessageBox_Icon"></div>
       
   366                                                   </td>
       
   367                                                   <td style="vertical-align: top;" id="messageBoxIDContent">
       
   368                                                     <span>
       
   369                                                       <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
       
   370                                                         xxInfo: AccessTableWithNoView
       
   371                                                       </div>
       
   372                                                       <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
       
   373                                                         xxThe current information is empty.
       
   374                                                       </div>
       
   375                                                       <div class="MessageBox_TextSeparator"></div>
       
   376                                                     </span>
       
   377                                                   </td>
       
   378                                                 </tr>
       
   379                                                 </tbody>
       
   380                                               </table>
       
   381                                             </span>
       
   382                                           </td>
       
   383                                         </tr>
       
   384                                       </tbody>
       
   385                                     </table>
       
   386                                   </td>
       
   387                                   <td class="MessageBox_RightTrans">
       
   388                                     <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
       
   389                                       <tbody>
       
   390                                         <tr><td class="MessageBox_TopRight"></td></tr>
       
   391                                         <tr><td class="MessageBox_Right"></td></tr>
       
   392                                       </tbody>
       
   393                                     </table>
       
   394                                   </td>
       
   395                                 </tr>
       
   396                                 <tr>
       
   397                                   <td rowspan="2" class="MessageBox_BottomLeft"></td>
       
   398                                   <td class="MessageBox_BottomTrans MessageBox_bg"></td>
       
   399                                   <td rowspan="2" class="MessageBox_BottomRight"></td>
       
   400                                 </tr>
       
   401                                 <tr><td class="MessageBox_Bottom"></td></tr>
       
   402                               </tbody>
       
   403                             </table>
       
   404 
       
   405                           </td>
       
   406                           <td class="MessageBox_RightMargin"></td>
       
   407                         </tr>
       
   408                         <tr class="MessageBox_BottomMargin">
       
   409                           <td class="MessageBox_LeftMargin"></td>
       
   410                           <td></td>
       
   411                           <td class="MessageBox_RightMargin"></td>
       
   412                         </tr>
       
   413                       </tbody>
       
   414                     </table>
       
   415                     
       
   416                     <!-- USER CONTROLS START-->
       
   417                     <table class="Main_Client_TableEdition">
       
   418                       <tr>
       
   419                         <td class="TableEdition_OneCell_width"></td>
       
   420                         <td class="TableEdition_OneCell_width"></td>
       
   421                         <td class="TableEdition_OneCell_width"></td>
       
   422                         <td class="TableEdition_OneCell_width"></td>
       
   423                       </tr>
       
   424                 
       
   425                       <!-- Line 1 -->
       
   426                       <tr id="filterRow1">
       
   427                         <td class="TitleCell"><span class="LabelText">Organization</span></td>
       
   428                         <td class="Combo_ContentCell">
       
   429                         <select  name="inpOrgId" id="paramOrgId" class="ComboKey Combo_TwoCells_width" required="true" onchange="changeOrganization(); return true;">
       
   430                           <div id="reportAD_ORGID"></div>
       
   431                         </select></td>
       
   432                       </tr>
       
   433             
       
   434                       <!-- Line 2 -->
       
   435                       <tr id="filterRow2">
       
   436                         <td class="TitleCell"><span class="LabelText">Payment Method</span></td>
       
   437                         <td class="Combo_ContentCell">
       
   438                           <select name="inpPaymentMethod"
       
   439                                   onkeypress="changeToEditingMode('onkeypress');"
       
   440                                   onchange="changeToEditingMode('onchange', this);logChanges(this); loadFinancialAccountCombo(); return true;"
       
   441                                   class="ComboKey Combo_TwoCells_width" id="inpPaymentMethod">
       
   442                             <div id="sectionDetailPaymentMethod"></div>
       
   443                           </select>
       
   444                         </td>
       
   445                         <td class="TitleCell"><span class="LabelText">Financial Account</span></td>
       
   446                         <td class="Combo_ContentCell">
       
   447                           <select name="inpFinancialAccount"
       
   448                                   onkeypress="changeToEditingMode('onkeypress');"
       
   449                                   onchange="changeToEditingMode('onchange', this);logChanges(this); return true;"
       
   450                                   class="ComboKey Combo_TwoCells_width" id="inpFinancialAccount">
       
   451                             <div id="sectionDetailFinancialAccount"></div>
       
   452                           </select>
       
   453                         </td>
       
   454                       </tr>
       
   455                 
       
   456                       <!-- Line 3 -->
       
   457                       <tr id="filterRow3"> 
       
   458                         <td class="TitleCell"><span class="LabelText">Date From</span></td>
       
   459                         <td class="TextBox_btn_ContentCell">
       
   460                           <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
       
   461                             <tr>
       
   462                               <td class="TextBox_ContentCell">
       
   463                                 <input type="text" id="paramDateFrom" class="dojoValidateValid TextBox_btn_OneCell_width" value="" maxlength="10" name="inpDateFrom" onkeyup="autoCompleteDate(this);" onkeydown="changeToEditingMode('onkeydown');" onkeypress="changeToEditingMode('onkeypress');" oncut="changeToEditingMode('oncut');" onpaste="changeToEditingMode('onpaste');" oncontextmenu="changeToEditingMode('oncontextmenu');" onblur="expandDateYear(this.id);" onchange="" displayFormat="xx" saveFormat="xx"></input>
       
   464                                 <!-- <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpDateFrom" id="paramDateFrom" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;" onblur=""></input><script>djConfig.searchIds.push("paramDateFrom");</script> -->
       
   465                               </td>
       
   466                               <td class="FieldButton_ContentCell">
       
   467                                 <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpDateFrom', document.frmMain.inpDateFrom.value, false);return false;">
       
   468                                   <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
       
   469                                     <tr>
       
   470                                       <td class="FieldButton_bg">
       
   471                                         <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
       
   472                                       </td>
       
   473                                     </tr>
       
   474                                   </table>
       
   475                                 </a>
       
   476                               </td>
       
   477                             </tr>
       
   478                           </table>
       
   479                         </td>
       
   480                   
       
   481                         <td class="TitleCell"><span class="LabelText">Date To</span></td>
       
   482                         <td class="TextBox_btn_ContentCell">
       
   483                           <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
       
   484                             <tr>
       
   485                               <td class="TextBox_ContentCell">
       
   486                                 <input type="text" id="paramDateTo" class="dojoValidateValid TextBox_btn_OneCell_width" value="" maxlength="10" name="inpDateTo" onkeyup="autoCompleteDate(this);" onkeydown="changeToEditingMode('onkeydown');" onkeypress="changeToEditingMode('onkeypress');" oncut="changeToEditingMode('oncut');" onpaste="changeToEditingMode('onpaste');" oncontextmenu="changeToEditingMode('oncontextmenu');" onblur="expandDateYear(this.id);" onchange="" displayFormat="xx" saveFormat="xx"></input>
       
   487                                 <!-- <input dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpDateTo" id="paramDateTo" size="10" maxlength="10" value="" onkeyup="autoCompleteDate(this.textbox, this.displayFormat);return true;" onblur=""></input><script>djConfig.searchIds.push("paramDateTo");</script> -->
       
   488                               </td>
       
   489                               <td class="FieldButton_ContentCell">
       
   490                                 <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpDateTo', document.frmMain.inpDateTo.value, false);return false;">
       
   491                                   <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
       
   492                                     <tr>
       
   493                                       <td class="FieldButton_bg">
       
   494                                         <img alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></img>
       
   495                                       </td>
       
   496                                     </tr>
       
   497                                   </table>
       
   498                                 </a>
       
   499                               </td>
       
   500                             </tr>
       
   501                           </table>
       
   502                         </td>
       
   503                       </tr>
       
   504                       
       
   505                       <!-- Line 4 -->
       
   506                       <tr id="filterRow4">
       
   507                         <td class="TableEdition_OneCell_width TitleCell">
       
   508                           <span class="LabelText"><label for="paramReceivedIn">Received In</label></span>
       
   509                         </td>
       
   510                         <td class="Radio_Check_ContentCell">
       
   511                           <SPAN class="Checkbox_container_NOT_Focused">
       
   512                             <INPUT type="radio" name="inpIsReceipt" id="paramReceivedIn" value="Y" checked onchange="" onclick=""/>
       
   513                           </SPAN>
       
   514                         </td>
       
   515                         <td class="TableEdition_OneCell_width TitleCell">
       
   516                           <span class="LabelText"><label for="paramPaidOut">Paid Out</label></span>
       
   517                         </td>
       
   518                         <td class="Radio_Check_ContentCell">
       
   519                           <SPAN class="Checkbox_container_NOT_Focused">
       
   520                             <INPUT type="radio" name="inpIsReceipt" id="paramPaidOut" value="N" onchange="" onclick=""/>
       
   521                           </SPAN>
       
   522                         </td>
       
   523                       </tr>
       
   524                       
       
   525                       <tr id="filterRow5">
       
   526                         <td></td>
       
   527                         <td class="Button_LeftAlign_ContentCell">
       
   528                           <div>
       
   529                            <button type="button" 
       
   530                               id="buttonSearch" 
       
   531                               class="ButtonLink" 
       
   532                               onclick="validate();setFilters();return false;" 
       
   533                               onfocus="buttonEvent('onfocus', this); window.status='Search'; return true;" 
       
   534                               onblur="buttonEvent('onblur', this);" 
       
   535                               onkeyup="buttonEvent('onkeyup', this);" 
       
   536                               onkeydown="buttonEvent('onkeydown', this);" 
       
   537                               onkeypress="buttonEvent('onkeypress', this);" 
       
   538                               onmouseup="buttonEvent('onmouseup', this);" 
       
   539                               onmousedown="buttonEvent('onmousedown', this);" 
       
   540                               onmouseover="buttonEvent('onmouseover', this); window.status='Search'; return true;" 
       
   541                               onmouseout="buttonEvent('onmouseout', this);">
       
   542                               <table class="Button">
       
   543                                 <tr>
       
   544                                   <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border="0" /></td>
       
   545                                   <td class="Button_text Button_width">Search</td>
       
   546                                   <td class="Button_right"></td>
       
   547                                 </tr>
       
   548                               </table>
       
   549                             </button>
       
   550                           </div>
       
   551                         </td>
       
   552                         <td></td>
       
   553                         <td></td>
       
   554                       </tr>
       
   555                       
       
   556                       <!-- GRID START-->
       
   557                       <tr>
       
   558                         <td colspan="6">
       
   559                           <div class="Popup_ContentPane_Client" id="client_middle">
       
   560                             <table cellspacing="0" cellpadding="0" width="10px" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;" id="grid_sample">
       
   561                               <tr class="DataGrid_Body_Row" id="grid_sample_header">
       
   562                                 <th width="10px" class="DataGrid_Header_Cell">DataGrid</th>
       
   563                               </tr>
       
   564                               <tr class="DataGrid_Body_Row DataGrid_Body_Row_1" id="grid_sample_row">
       
   565                                 <td class="DataGrid_Body_Cell">Loading...</td>
       
   566                               </tr>
       
   567                             </table>
       
   568                             <table cellspacing="0" cellpadding="0" width="0px" height="0px" cellspacing="0" cellpadding="0">
       
   569                               <tr>
       
   570                                 <td><input type="text" class="DataGrid_Table_Dummy_Input" id="grid_table_dummy_input"></input></td>
       
   571                               </tr>
       
   572                             </table>
       
   573                             <table width="100%" cellspacing="0" cellpadding="0" border="0" id="grid_bookmark">
       
   574                               <tr>
       
   575                                 <td class="DataGrid_Popup_text_container">
       
   576                                   <div id="bookmark">
       
   577                                     <nobr class='DataGrid_Popup_text_bookmark'>&nbsp;</nobr>
       
   578                                   </div>
       
   579                                 </td>
       
   580                               </tr>
       
   581                             </table>
       
   582                             <table width="100%" cellspacing="0" cellpadding="0" border="0" class="Main_Client_TableRelation" id="grid_table">
       
   583                               <tr>
       
   584                                 <td>
       
   585                                   <div id="grid" dojotype="openbravo.widget.DataGrid"
       
   586                                     structureurl="../org.openbravo.advpaymentmngt.ad_forms/BatchPaymentExecution.html?Command=STRUCTURE"
       
   587                                     dataurl="../org.openbravo.advpaymentmngt.ad_forms/BatchPaymentExecution.html?Command=DATA"
       
   588                                     updatesurl="../org.openbravo.advpaymentmngt.ad_forms/BatchPaymentExecution.html?Command=DATA"
       
   589                                     calculatenumrows="true" editable="false" sortable="true"
       
   590                                     deleteable="true" oninvalidvalue="alert" onscroll="updateHeader"
       
   591                                     ongridload="onGridLoadDo" buffersize="3.0" showlinenumbers="true"
       
   592                                     offset="0" sortcols="1" sortdirs="ASC" defaultrow="0"
       
   593                                     maxwidth="99%" percentagewidthrelativetoid="client_middle"
       
   594                                     multipleRowSelection="true"
       
   595                                     preventcache="true" usecache="true" cachecontent="false">
       
   596                                   </div>
       
   597                                 </td>
       
   598                               </tr>
       
   599                             </table>
       
   600                           </div>
       
   601                         </td>
       
   602                       </tr>
       
   603                       
       
   604                       <!-- GRID END-->
       
   605                       <tr id="bottomRow">
       
   606                         <td></td>
       
   607                         <td class="Button_LeftAlign_ContentCell">
       
   608                           <div>
       
   609                             <button type="button"
       
   610                               id="buttonProcess"
       
   611                               class="ButtonLink" 
       
   612                               onclick="validateSelector('SAVE');return false;"
       
   613                               onfocus="buttonEvent('onfocus', this); window.status='Process'; return true;"
       
   614                               onblur="buttonEvent('onblur', this);"
       
   615                               onkeyup="buttonEvent('onkeyup', this);"
       
   616                               onkeydown="buttonEvent('onkeydown', this);"
       
   617                               onkeypress="buttonEvent('onkeypress', this);"
       
   618                               onmouseup="buttonEvent('onmouseup', this);"
       
   619                               onmousedown="buttonEvent('onmousedown', this);"
       
   620                               onmouseover="buttonEvent('onmouseover', this); window.status='Process'; return true;"
       
   621                               onmouseout="buttonEvent('onmouseout', this);">
       
   622                               <table class="Button">
       
   623                                 <tr>
       
   624                                   <td class="Button_left"><img class="Button_Icon Button_Icon_process" alt="Process" title="Process" src="../../../../../web/images/blank.gif" border="0" /></td>
       
   625                                   <td class="Button_text Button_width">Process</td>
       
   626                                   <td class="Button_right"></td>
       
   627                                 </tr>
       
   628                               </table>
       
   629                             </button>
       
   630                           </div>
       
   631                         </td>
       
   632                         <td class="TitleCell"></td>
       
   633                         <td class="ContentCell"></td>
       
   634                       </tr>
       
   635                     </table>
       
   636                     <!-- USER CONTROLS END-->
       
   637               </td>
       
   638             </tr>
       
   639             </table>
       
   640             </td>
       
   641             </tr>
       
   642           </table>
       
   643         </div>
       
   644           <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Menu_ContentPane_Bottom" id="tdbottomSeparator">
       
   645             <tr>
       
   646               <td class="Main_Bottom_bg"><img src="../../../../../web/images/blank.gif" border="0"></td>
       
   647             </tr>
       
   648           </table>
       
   649         </td>
       
   650         <td valign="top">
       
   651           <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Right" id="tdrightSeparator">
       
   652             <tr><td class="Main_NavBar_bg_right"></td></tr>
       
   653             <tr><td class="Main_ToolBar_bg_right" valign="top"></td></tr>
       
   654             <tr><td class="Main_Client_bg_right"></td></tr>
       
   655             <tr><td class="Main_Bottom_bg_right"></td></tr>
       
   656           </table>
       
   657         </td>
       
   658       </tr>
       
   659     </table>
       
   660   </form>
       
   661 </body>
       
   662 </html>